/* components.css - Halcyon Creative Academy Interactive Components & Modals */

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary-red {
    background: var(--primary-red);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 29, 36, 0.3);
}

.btn-primary-red:hover {
    background: var(--primary-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 29, 36, 0.4);
}

.btn-outline-red {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline-red:hover {
    background: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-pill {
    border-radius: var(--border-radius-full);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* -------------------------------------------------------------------------
   MODAL WINDOWS (General)
   ------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--modal-shadow);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-dialog-large {
    max-width: 820px;
}

.modal-header {
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-close-btn {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

.modal-body {
    padding: 1.8rem;
}

/* -------------------------------------------------------------------------
   FORMS & INPUTS
   ------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.3rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(234, 29, 36, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* -------------------------------------------------------------------------
   PAYMENT GATEWAY INTERFACE (All Payment Also: bKash, Nagad, Rocket, Card)
   ------------------------------------------------------------------------- */
.payment-methods-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.payment-tab-item {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.payment-tab-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.payment-tab-item.active {
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(234, 29, 36, 0.15);
    background: #fff9f9;
}

.payment-tab-logo {
    font-weight: 800;
    font-size: 1.05rem;
}

.payment-tab-logo.bkash { color: var(--bkash); }
.payment-tab-logo.nagad { color: var(--nagad); }
.payment-tab-logo.rocket { color: var(--rocket); }
.payment-tab-logo.card { color: #1e3a8a; }

.payment-instruction-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-num {
    background: var(--primary-red);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-number-copy-box {
    background: #ffffff;
    border: 1.5px dashed var(--primary-red);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}

.number-display {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary-red);
}

.btn-copy-num {
    background: var(--primary-red-light);
    color: var(--primary-red);
    border: 1px solid rgba(234, 29, 36, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-xs);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-num:hover {
    background: var(--primary-red);
    color: #ffffff;
}

/* Invoice / Receipt Card */
.invoice-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.2rem;
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.invoice-badge-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.invoice-header-box {
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.invoice-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* -------------------------------------------------------------------------
   VIDEO MODAL (YouTube / HTML5 Responsive Embed)
   ------------------------------------------------------------------------- */
.video-modal-dialog {
    max-width: 900px;
    background: #000000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------------
   TOAST NOTIFICATION
   ------------------------------------------------------------------------- */
.toast-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111827;
    color: #ffffff;
    padding: 0.9rem 1.8rem;
    border-radius: var(--border-radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast-notice.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notice.success {
    background: #065f46;
    border: 1px solid #10b981;
}

.toast-notice.error {
    background: #991b1b;
    border: 1px solid #ef4444;
}
