/* =========================================================
   SUNDARAM MUTUAL - INVESTOR COMPLAINT FORM
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans";
    color: #00427f;
}

.mt-5 {
    margin-top: 5rem !important;
}


/* =========================================================
   PAGE
   ========================================================= */

.investor-page {
    width: 100%;
    padding: 50px 40px 80px;
}

.investor-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}


/* =========================================================
   PAGE INTRO
   ========================================================= */

.page-intro {
    margin-bottom: 35px;
}

.page-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #913913;
}

.page-intro h1 {
    margin: 0;
    font-family: "Crimson Pro";
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    font-weight: 500;
    color: #000000;
}

.page-description {
    max-width: 600px;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.complaint-card {
    overflow: hidden;
    background: #fff7f3;
    border: 1px solid #eaded8;
    border-radius: 18px;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.complaint-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 30px;
    background: #000000;
    color: #ffffff;
}

.header-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 18px;
}

.complaint-card-header h2 {
    margin: 0;
    font-family: "Crimson Pro";
    font-size: 25px;
    font-weight: 500;
}

.complaint-card-header p {
    margin: 3px 0 0;
    font-size: 13px;
    opacity: 0.85;
}


/* =========================================================
   BODY
   ========================================================= */

.complaint-card-body {
    padding: 42px 40px 45px;
}


/* =========================================================
   SECTION
   ========================================================= */

.form-section {
    width: 100%;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #000000;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: #000000;
}

.section-heading h3 {
    margin: 0;
    font-family: "Crimson Pro";
    font-size: 27px;
    line-height: 1.1;
    font-weight: 500;
    color: #000000;
}

.section-heading p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}


/* =========================================================
   GRID
   ========================================================= */

.form-grid {
    display: grid;
    gap: 22px 18px;
    width: 100%;
}

.three-columns {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 22px;
}

.four-columns {
    grid-template-columns: repeat(4, 1fr);
}


/* =========================================================
   FORM FIELD
   ========================================================= */

.form-field {
    width: 100%;
}

.form-field label,
.choice-field>label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.form-field label span,
.choice-field>label span,
.nature-heading h4 span {
    color: #913913;
}


/* =========================================================
   INPUT
   ========================================================= */

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #b9b2ae;
    border-radius: 6px;
    background: #ffffff;
    padding: 13px 14px;
    font-family: "IBM Plex Sans";
    font-size: 13px;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
    height: 48px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #00427f;
    box-shadow: 0 0 0 3px rgba(0, 66, 127, 0.08);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.form-divider {
    width: 100%;
    height: 1px;
    margin: 42px 0;
    background: #dfd4cf;
}


/* =========================================================
   RADIO
   ========================================================= */

.choice-field {
    min-width: 0;
}

.choice-group {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 48px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.radio-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #000000;
    cursor: pointer;
}


/* =========================================================
   NATURE OF COMPLAINT
   ========================================================= */

.nature-section {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid #dfd4cf;
}

.nature-heading {
    margin-bottom: 22px;
}

.nature-heading h4 {
    margin: 0;
    font-family: "Crimson Pro";
    font-size: 24px;
    font-weight: 500;
    color: #000000;
}

.nature-heading p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}


/* =========================================================
   CHECKBOX LIST
   ========================================================= */

.complaint-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 45px;
    row-gap: 13px;
    list-style: none;
}

.complaint-options label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.complaint-options input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    accent-color: #00427f;
    cursor: pointer;
}

.complaint-options label:hover span {
    color: #00427f;
}


/* =========================================================
   REMARKS
   ========================================================= */

.remarks-field {
    margin-top: 35px;
}

.remarks-field textarea {
    min-height: 110px;
    resize: vertical;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    padding: 13px 25px;
    border: 1px solid #000000;
    border-radius: 30px;
    background: #000000;
    color: #ffffff;
    font-family: "IBM Plex Sans";
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* .submit-btn:hover {
    background: #00345f;
    transform: translateY(-1px);
} */


/* =========================================================
   TOP-CENTER FLOATING POPUP ALERT SYSTEM STYLES
   ========================================================= */

.alert-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 480px;
    max-width: calc(100vw - 32px);
    font-family: inherit;
    pointer-events: none;
}


/* Base Alert Layout */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    pointer-events: auto;
    animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Icon Styling */

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}


/* Content Hierarchy */

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.alert-message {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}


/* Close Action Button */

.alert-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.5;
    padding: 0;
    transition: opacity 0.2s;
    margin-left: 4px;
}

.alert-close:hover {
    opacity: 1;
}


/* Alert Type Themes */

.successsAlert {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.successsAlert .alert-icon {
    background-color: #10b981;
    color: #ffffff;
}

.successsAlert .alert-close {
    color: #065f46;
}

.WarningAlert {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.WarningAlert .alert-icon {
    background-color: #f59e0b;
    color: #ffffff;
}

.WarningAlert .alert-close {
    color: #92400e;
}

.FailureAlert {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.FailureAlert .alert-icon {
    background-color: #ef4444;
    color: #ffffff;
}

.FailureAlert .alert-close {
    color: #991b1b;
}


/* =========================================================
   TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .investor-page {
        padding: 40px 25px 60px;
    }
    .complaint-card-body {
        padding: 35px 30px 40px;
    }
    .four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .complaint-options {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
    .investor-page {
        padding: 30px 15px 50px;
    }
    .page-intro {
        margin-bottom: 25px;
    }
    .page-intro h1 {
        font-size: 40px;
        line-height: 1.05;
    }
    .page-description {
        font-size: 14px;
    }
    .complaint-card {
        border-radius: 12px;
    }
    .complaint-card-header {
        padding: 18px 20px;
    }
    .complaint-card-header h2 {
        font-size: 21px;
    }
    .complaint-card-header p {
        font-size: 12px;
    }
    .complaint-card-body {
        padding: 28px 20px 35px;
    }
    .section-heading {
        gap: 11px;
    }
    .section-number {
        width: 30px;
        height: 30px;
    }
    .section-heading h3 {
        font-size: 24px;
    }
    .three-columns,
    .four-columns {
        grid-template-columns: 1fr;
    }
    .form-divider {
        margin: 32px 0;
    }
    .nature-section {
        margin-top: 30px;
        padding-top: 25px;
    }
    .nature-heading h4 {
        font-size: 21px;
    }
    .complaint-options {
        gap: 12px;
    }
    .complaint-options label {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 480px) {
    .alert-container {
        top: 16px;
        width: calc(100vw - 24px);
    }
    .page-intro h1 {
        font-size: 34px;
    }
    .complaint-card-body {
        padding: 25px 15px 30px;
    }
    .complaint-card-header {
        padding: 16px;
    }
    .header-icon {
        width: 36px;
        height: 36px;
    }
}


/* Reference ID - default inactive appearance */

#CmptRegRefID {
    background-color: #eeeeee;
    color: #999;
    border-color: #d0d0d0;
}


/* When Yes is selected, make Reference ID look active */

body:has(#complaintYes:checked) #CmptRegRefID {
    background-color: #ffffff;
    color: #222;
    border-color: #b9b2ae;
}