/* =========================================================
                                GLOBAL
        ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Mukta", sans-serif;
    background: linear-gradient(
        rgba(241, 245, 249, 0.92),
        rgba(241, 245, 249, 0.92)
    );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #1e293b;
}

a {
    text-decoration: none;
}

/* =========================================================
                                TOP BAR & HEADER
        ========================================================= */
.top-strip {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 10px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #0f766e;
}

.top-strip-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.divider {
    opacity: 0.5;
}

.main-header {
    padding: 22px 30px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dbe3ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-circle {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f766e 0%, #0ea5a4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.25);
}

.header-title h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
}

.header-title p {
    margin-top: 6px;
    margin-bottom: 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.gov-badge {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    padding: 12px 18px;
    border-radius: 14px;
    color: #0f766e;
    font-weight: 700;
}

.news-bar {
    display: flex;
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    padding: 12px 0;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.news-bar marquee {
    font-size: 1rem;
}

/* =========================================================
                                REGISTRATION CARD
        ========================================================= */
.main-wrapper {
    max-width: 1300px;
    margin: auto;
    padding: 35px 18px;
}

.main-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 35px;
}

.form-header-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    /* border-bottom: 2px dashed #dbe3ea; */
    /* padding-bottom: 20px; */
}

.form-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.form-title p {
    color: #64748b;
    font-size: 15px;
    margin: 5px 0 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* AI Button */
.btn-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
    transition: 0.3s ease;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.35);
    color: #fff;
}

.btn-home-link {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.btn-home-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* =========================================================
                                FORM ELEMENTS
        ========================================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #334155;
    font-size: 14px;
}

.form-label .req {
    color: #dc2626;
}

.input-wrapper {
    position: relative;
}

.custom-input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 1px solid #dbe3ea;
    background: #f8fafc;
    padding: 0 18px 0 46px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    transition: 0.3s ease;
    appearance: auto;
}

select.custom-input {
    cursor: pointer;
}

textarea.custom-input {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.custom-input:focus {
    outline: none;
    background: #fff;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

.textarea-icon {
    top: 22px;
    transform: none;
}

/* Section Blocks */
.section-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Access Checkboxes */
.access-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.access-checkbox {
    flex: 1;
    /* min-width: 220px; */
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    color: #334155;
    font-size: 1rem;
}

.access-checkbox:hover {
    border-color: #0f766e;
    background: #ecfeff;
}

.access-checkbox input {
    width: 22px;
    height: 22px;
    accent-color: #0f766e;
    cursor: pointer;
}

/* Federation Box */
#federationFields {
    display: none;
    /* Toggled by JS */
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
}

.sro-box {
    background: #fff;
    border: 1px solid #fcd34d;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 15px;
    position: relative;
}

/* Upload Buttons */
.upload-group-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-upload {
    flex: 1;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-radius: 16px;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-upload i {
    font-size: 24px;
}

.btn-logo {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-letterhead {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.btn-stamp {
    background: linear-gradient(135deg, #64748b, #475569);
}

.btn-upload:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Terms and Submit */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 16px;
    margin-top: 24px;
    border-left: 4px solid #0f766e;
}

.terms-row input {
    width: 24px;
    height: 24px;
    accent-color: #0f766e;
    margin-top: 2px;
    cursor: pointer;
}

.terms-row label {
    font-weight: 700;
    color: #334155;
    font-size: 15px;
    cursor: pointer;
    margin: 0;
    line-height: 1.6;
}

.btn-row {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.btn-submit {
    flex: 2;
    height: 60px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    transition: 0.3s ease;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.32);
}

.btn-cancel {
    flex: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #475569;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s ease;
}

.btn-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* =========================================================
                                RESPONSIVE
        ========================================================= */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gov-badge {
        width: 100%;
        text-align: center;
    }

    .btn-row {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .main-card {
        padding: 20px;
    }

    .access-group {
        flex-direction: column;
    }

    .btn-upload {
        width: 100%;
    }

    .logo-circle {
        width: 62px;
        height: 62px;
        font-size: 28px;
    }

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

    .top-strip {
        flex-direction: column;
        padding: 10px;
    }

    .access-checkbox {
        font-size: 0.85rem;
        padding: 16px 16px;
    }
    .section-title {
        font-size: 16px;
    }
}

.main-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.3s ease;
}

.main-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.register-card {
    padding: 32px;
    position: sticky;
    top: 20px;
}

.registration-type-container {
    margin-bottom: 25px;
}

.registration-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.type-option {
    position: relative;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.type-label {
    display: block;
    text-align: center;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.2;
}

.type-option input[type="radio"]:checked + .type-label {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 6px 15px rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.custom-alert {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.custom-alert.success {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.custom-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
}

.toggle-cpassword {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
}

.form-actions-centered {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 25px;
    width: 100%;
}

.btn-cancel-centered,
.btn-register-centered {
    flex: 1;
    max-width: 160px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-cancel-centered {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
}

.btn-cancel-centered:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #94a3b8;
}

.btn-register-centered {
    border: none;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.btn-register-centered:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
}

.register-box-centered {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #dbe3ea;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.register-box-centered a {
    color: #0f766e;
    font-weight: 800;
    margin-left: 5px;
    text-decoration: none;
}

.register-box-centered a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .top-strip {
        padding: 12px 18px;
        gap: 14px;
    }

    .top-strip-center {
        font-size: 13px;
    }

    .main-header {
        padding: 20px;
        align-items: flex-start;
    }

    .header-left {
        width: 100%;
    }

    .header-title h1 {
        font-size: 28px;
    }

    .header-title p {
        font-size: 14px;
    }

    .gov-badge {
        width: 100%;
        text-align: center;
    }

    .software-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-strip-center {
        flex-direction: column;
        gap: 6px;
    }

    .divider {
        display: none;
    }

    .main-header {
        padding: 18px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .logo-circle {
        width: 62px;
        height: 62px;
        font-size: 28px;
        border-radius: 18px;
    }

    .header-title h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .header-title p {
        font-size: 13px;
    }

    .gov-badge {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 13px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .software-main-card {
        padding: 20px;
    }

    .software-main-header h2 {
        font-size: 26px;
    }

    .software-box-top {
        align-items: flex-start;
    }

    .software-box-top h3 {
        font-size: 21px;
    }

    .important-links-main-card {
        padding: 20px;
    }

    .important-links-header h2 {
        font-size: 26px;
    }

    .important-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-circle {
        width: 75px;
        height: 65px;
        font-size: 2rem;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .header-title p {
        font-size: 11px;
        margin-bottom: 0.5rem;
    }

    .register-card {
        padding: 20px;
    }

    .registration-type-selector {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .type-label {
        padding: 10px;
        font-size: 13px;
    }

    .form-actions-centered {
        gap: 10px;
    }

    .btn-cancel-centered,
    .btn-register-centered {
        max-width: 140px;
        font-size: 14px;
        height: 46px;
    }
}
.upload-group-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.upload-item {
    flex: 1 1 250px;
    min-width: 220px;
}

.file-preview {
    margin-top: 10px;
    min-height: 80px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    background: #fafafa;
}

.file-preview img {
    max-width: 100%;
    max-height: 60px;
    border-radius: 6px;
}

.pdf-preview {
    color: #dc2626;
    font-size: 14px;
    word-break: break-word;
}

.pdf-preview i {
    font-size: 32px;
    display: block;
    margin-bottom: 5px;
}
.error {
    color: #dc2626 !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.custom-input.error {
    border: 1px solid #dc2626 !important;
    background: #fef2f2;
}

.custom-input.valid {
    border: 1px solid #16a34a !important;
}
