/* IHL Registration Form - Spin Theme Compatible Design */

:root {
    --spin-primary: #27ae60;
    /* Vibrant green */
    --spin-secondary: #f39c12;
    /* Gold accent */
    --spin-dark: #ffffff;
    /* Text color for dark mode */
    --spin-light: #34495e;
    /* Darker gray/blue for borders */
    --spin-white: #1a1a1b;
    /* Main background */
    --spin-card: #242526;
    /* Card background */
    --spin-input: #2c2d2e;
    /* Input background */
    --spin-success: #2ecc71;
    --spin-danger: #e74c3c;
    --spin-warning: #f1c40f;
}

.ihl-registration-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    font-family: 'Roboto', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5dc;
    border-radius: 12px;
}

/* Header - Cricket Themed */
.ihl-header {
    /* background: linear-gradient(135deg, var(--spin-primary) 0%, #145a32 100%); */
    /* color: var(--spin-white); */
    padding: 50px 40px;
    text-align: center;
    border-radius: 0;
    /* box-shadow: 0 4px 20px rgba(30, 132, 73, 0.3); */
    position: relative;
    overflow: hidden;
}

.ihl-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.ihl-header h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.ihl-header h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--spin-secondary);
}

.ihl-header .subtitle {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    font-style: italic;
}

/* Form Container - Dark Theme */
#ihl-registration-form {
    /* background: var(--spin-white); */
    padding: 0;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    border-radius: 12px;
    overflow: hidden;
}

.form-section {
    padding: 40px;
    border-bottom: 1px solid var(--spin-light);
    /* background: var(--spin-card); */
    transition: all 0.3s ease;
}

.form-section:hover {
    /* background: #2a2b2c; */
}

.form-section:last-child {
    border-bottom: none;
}

/* Section Headers - Bold Sports Style */
.form-section h3 {
    /* color: var(--spin-dark); */
    font-size: 22px;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--spin-primary);
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--spin-primary) 0%, #145a32 100%);
    color: var(--spin-dark);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(30, 132, 73, 0.3);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 0;
}

.form-row .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: flex;
    /* margin-bottom: 10px; */
    /* color: var(--spin-dark); */
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 6px;
}

/* Input Fields - Sports Style */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--spin-light) !important;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
    /* background: var(--spin-input); */
    /* color: var(--spin-dark); */
}

.form-group input[type="date"] {
    background: #f5f5dc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--spin-primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
    /* background: #323334; */
}

/* .form-group textarea {
    resize: vertical;
    min-height: 100px;
} */

.form-group .required-field,
.form-section .required-field {
    color: var(--spin-danger);
}

/* Radio and Checkbox - Cricket Theme */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid var(--spin-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    /* background: var(--spin-input); */
    position: relative;
    /* color: var(--spin-dark); */
}

.radio-label:hover {
    /* border-color: var(--spin-primary); */
    /* background: #323334; */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.radio-label input[type="radio"]:checked~span,
.radio-label input[type="checkbox"]:checked~span {
    color: var(--spin-primary);
    font-weight: 700;
}

.radio-label input[type="radio"]:checked,
.radio-label input[type="checkbox"]:checked {
    accent-color: var(--spin-primary);
}

.radio-label input[type="radio"],
.radio-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* File Upload - Sports Style */
.upload-note {
    color: var(--spin-card);
    font-size: 13px;
    margin-bottom: 20px;
    font-style: italic;
    /* background: rgba(243, 156, 18, 0.1); */
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 4px solid var(--spin-warning);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.upload-group {
    margin-bottom: 25px;
    /* background: var(--spin-input); */
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--spin-primary);
}

.upload-group>label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    /* color: var(--spin-dark); */
}

.upload-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px dashed var(--spin-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    /* background: var(--spin-input); */
    /* color: var(--spin-dark); */
}

.file-upload-wrapper input[type="file"]:hover {
    border-color: #145a32;
    background: #f0f8f4;
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.1);
}

.upload-status {
    margin-top: 10px;
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
    font-weight: 600;
}

.upload-status.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid var(--spin-success);
    display: block;
}

.upload-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid var(--spin-danger);
    display: block;
}

.upload-status.uploading {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
    display: block;
}

/* Fee Section - Cricket Stadium Style */
/* .fee-section {
    background: linear-gradient(135deg, #1a1a1b 0%, #242526 100%);
    border: 1px solid var(--spin-primary) !important;
} */

.fee-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.fee-option {
    /* background: var(--spin-input); */
    border: 1px solid var(--spin-card) !important;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

/* .fee-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 132, 73, 0.2);
} */

.fee-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.fee-amount {
    font-size: 36px;
    font-weight: 700;
    /* color: var(--spin-primary); */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.fee-note {
    background: var(--spin-secondary);
    border: 3px solid #d68910;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    color: var(--spin-white);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.total-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: linear-gradient(135deg, #000 0%, #1a1a1b 100%); */
    color: var(--spin-white);
    padding: 25px 30px;
    border: 1px solid var(--spin-card);
    border-radius: 8px;
    margin-top: 25px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.total-fee .amount {
    font-size: 38px;
    font-weight: 700;
    color: var(--spin-danger);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Declaration Sections - Important Highlight */
/* .declaration-section {
    background: linear-gradient(135deg, #242526 0%, #1a1a1b 100%);
    border: 1px solid var(--spin-warning) !important;
} */

.declaration-box {
    /* background: var(--spin-input); */
    padding: 25px;
    border-left: 5px solid var(--spin-warning);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.declaration-box p {
    margin: 0 0 20px 0;
    line-height: 1.8;
    /* color: #ccc; */
    font-size: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    /* background: var(--spin-input); */
    border-radius: 6px;
    border: 1px solid var(--spin-light);
    transition: all 0.3s;
    gap: 8px;
}

.checkbox-label:hover {
    /* background: #323334; */
    border-color: var(--spin-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--spin-primary);
}

.checkbox-label span {
    font-weight: 600;
    color: var(--spin-white);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c !important;
    background-color: #fff8f8;
}

.field-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group.has-error .field-error {
    display: block;
}

.preferred-venue {
    width: 50%;
}


/* Submit Section - Action Button */
.submit-section {
    text-align: center;
    padding: 50px 40px !important;
    /* background: linear-gradient(135deg, #f8f9fa 0%, var(--spin-white) 100%); */
}

.submit-btn {
    background: linear-gradient(135deg, var(--spin-danger) 0%, #c0392b 100%);
    color: var(--spin-white);
    border: none;
    padding: 20px 70px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.5);
}

.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-loader {
    display: inline-block;
}

.submit-note {
    margin-top: 25px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Messages */
#form-message {
    margin-bottom: 25px;
    padding: 18px 25px;
    border-radius: 8px;
    display: none;
    font-weight: 600;
    border-left: 5px solid;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border-color: var(--spin-success);
    display: block;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: var(--spin-danger);
    display: block;
}

/* Admin Styles - Status Badges */
.status-success {
    color: var(--spin-white);
    font-weight: 700;
    padding: 6px 15px;
    background: var(--spin-success);
    border-radius: 20px;
    display: inline-block;
}

.status-pending {
    color: var(--spin-dark);
    font-weight: 700;
    padding: 6px 15px;
    background: var(--spin-warning);
    border-radius: 20px;
    display: inline-block;
}

.status-failed,
.status-cancelled {
    color: var(--spin-white);
    font-weight: 700;
    padding: 6px 15px;
    background: var(--spin-danger);
    border-radius: 20px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ihl-registration-wrapper {
        /* margin: 20px 10px; */
        padding: 0px;
    }

    .ihl-header {
        padding: 35px 25px;
    }

    .ihl-header h1 {
        font-size: 24px;
    }

    .ihl-header h2 {
        font-size: 16px;
    }

    .form-section {
        padding: 25px 20px;
    }

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

    .fee-info {
        grid-template-columns: 1fr;
    }

    .submit-section {
        padding: 30px 20px !important;
    }

    .submit-btn {
        /* width: 100%; */
        padding: 16px 20px;
        font-size: 18px;
        letter-spacing: 1px;
    }

    .total-fee {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .preferred-venue{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ihl-header h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .ihl-header h2 {
        font-size: 14px;
    }

    .form-section h3 {
        font-size: 16px;
    }

    .section-number {
        /* width: 35px; */
        height: 35px;
        font-size: 16px;
    }

    .radio-group.inline {
        flex-direction: column;
    }

    .fee-amount {
        font-size: 30px;
    }

    .total-fee .amount {
        font-size: 32px;
    }

    .preferred-venue{
        width: 100%;
    }

    .payment-step-item {
        display: grid !important;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loader::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 12px;
    border: 3px solid var(--spin-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.payment-instructions {
    margin-top: 20px;
    padding: 30px;
    /* background: var(--spin-input); */
    border: 1px solid var(--spin-light);
    border-radius: 12px;
}

.payment-instructions h4 {
    margin-top: 0;
    margin-bottom: 10px;
    /* color: var(--spin-dark); */
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-instructions p {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
}

/* Payment Steps and QR Code Side-by-Side */
.payment-flex-container {
    display: flex;
    align-items: stretch;
    gap: 30px;
    /* margin-top: 25px; */
}

.qr-code-display {
    flex: 0 0 220px;
    text-align: center;
    padding: 20px;
    background: #fff;
    /* Keep white for QR code readability */
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-code-display img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--spin-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.payment-step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    /* background: var(--spin-card); */
    border: 1px solid var(--spin-light);
    border-radius: 8px;
    border-left: 5px solid var(--spin-primary);
    transition: all 0.3s ease;
}

.payment-step-item:hover {
    transform: translateX(5px);
    border-color: var(--spin-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-num {
    width: min-content;
    background: var(--spin-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.step-desc {
    font-size: 14px;
    font-weight: 500;
    /* color: var(--spin-dark); */
    line-height: 1.4;
}

.step-desc strong {
    color: var(--spin-danger);
    font-size: 17px;
    font-weight: 700;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .payment-flex-container {
        gap: 20px;
    }

    .qr-code-display {
        flex: 0 0 180px;
    }
}

@media (max-width: 768px) {
    .payment-instructions {
        padding: 20px;
    }

    .payment-flex-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .qr-code-display {
        flex: 0 0 auto;
        width: 200px;
        order: 2;
        /* QR at bottom on mobile makes it feel like the steps lead to it */
    }

    .payment-steps {
        width: 100%;
        order: 1;
    }

    .payment-step-item {
        padding: 12px 15px;
    }

    .step-desc {
        font-size: 13px;
    }
}

/* Cricket Ball Pattern Effect (Optional Enhancement) */
/* .form-section::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="rgba(30,132,73,0.1)" stroke-width="2"/><path d="M30,50 Q50,30 70,50" stroke="rgba(30,132,73,0.1)" stroke-width="1.5" fill="none"/><path d="M30,50 Q50,70 70,50" stroke="rgba(30,132,73,0.1)" stroke-width="1.5" fill="none"/></svg>');
    opacity: 0.5;
} */

.tshirt-note span,
.tshirt-note p {
    color: #b30000 !important;
    font-size: 16px;
    margin: 0px !important;
}

.fee-disclaimer p {
    color: var(--spin-danger) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}