/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #e6b800;
    /* Matching the gold in the screenshot */
    --primary-hover: #cfa500;
    --secondary-color: #e6b800;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --input-bg: #fbebc4;
    /* Screenshot beige */
    --input-text: #1a1a1a;
    --input-border: #8b6b3b;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--secondary-color);
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #e6b800, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.form-header-main {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.form-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 12px;
}

.title-area h1 {
    font-size: 2rem;
    margin: 0;
    text-align: left;
}

.fee-notice {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.2rem;
}

.form-number-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.form-number-wrapper label {
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.form-number-input {
    width: 100px !important;
    padding: 0.3rem 0.5rem !important;
    background: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

h3 {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h3 i {
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    background: var(--input-bg);
    border: 1px solid #7c6a4a;
    border-radius: 2px;
    color: var(--input-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.2);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-option label {
    margin: 0;
    white-space: nowrap;
}

.payment-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.small-input {
    width: 60px !important;
    text-align: center;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fbebc4;
    color: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.bank-table th,
.bank-table td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid #7c6a4a;
    font-size: 0.9rem;
}

.bank-table th {
    background: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.official-use {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
}

.registration-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.group-label {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), #ffcc00);
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(230, 184, 0, 0.4);
    background: linear-gradient(135deg, #ffcc00, var(--primary-color));
}

.btn-submit:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0.8rem;
        width: 100% !important;
    }

    .form-card {
        padding: 1.2rem;
        border-radius: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .title-area h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .form-number-wrapper {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }

    .full-width {
        grid-column: span 1;
    }

    .payment-row {
        flex-direction: column;
        gap: 1rem;
    }

    .bank-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .bank-table {
        min-width: 600px;
        /* Force scroll for readable table */
    }

    h3 {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    .form-logo {
        width: 60px;
        height: 60px;
    }
}

/* Print Styles - Hidden by default */
.print-only {
    display: none;
}