
/* ==========================================================================
   1. DESIGN TOKENS (Desktop / Laptop First)
   ========================================================================== */

:root {

    --primary-color: #0B4BAE;
    --primary-dark: #182F54;
    --primary-light: #E8F1FD;

    --accent-blue: #2563eb;

    --bg-main: #F6F9FE;
    --bg-card: #ffffff;

    --border-color: #E5E7EB;
    --border-hover: #cfcfcf;
    --border-focus: #2563eb;

    --text-muted: #4b5563;

    --radius-sm: 10px;
    --radius-md: 16px;

    --shadow:
        0 10px 30px rgba(37, 99, 235, 0.08);

    --transition-fast:
        all 0.25s ease;

}

/* ==========================================================================
   2. GLOBAL RESET
   ========================================================================== */

* {

    padding: 0;
    margin: 0;
    box-sizing: border-box;

}

body {

    background-color: var(--bg-main);
    font-family: 'Inter', sans-serif;
    color: var(--primary-dark);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}

/* ==========================================================================
   3. MAIN CONTAINER (DEFAULT = DESKTOP/LAPTOP)
   ========================================================================== */

section {

    width: 92%;
    max-width: 1280px;

    margin: 0 auto;

    padding-top: 40px;
    padding-bottom: 40px;

}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: 'Poppins', sans-serif;
    line-height: 1.2;

}

p {

    color: var(--text-muted);

}



/* ==========================================================================
   5. FORM HEADER
   ========================================================================== */

.form-head {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 60px;

    margin-bottom: 40px;

}

.form-head-sec-1 {

    display: flex;
    align-items: flex-start;

    gap: 20px;

}

.form-head-sec-1-content {

    display: flex;
    flex-direction: column;

    gap: 10px;

}

.form-head-sec-1-content h1 {

    font-size: 42px;
    font-weight: 700;

    color: var(--primary-dark);

}

.form-head-sec-1-content p {

    max-width: 650px;

    font-size: 16px;

}

#grievance-logo {

    width: 90px;
    flex-shrink: 0;

}

#form-head-sec-2-img {

    max-height: 230px;
    width: auto;

}

/* ==========================================================================
   6. FORM SECTION CARD
   ========================================================================== */

.form-sec {

    background: var(--bg-card);

    border-radius: var(--radius-md);

    padding: 32px;

    margin-bottom: 28px;

    border: 1px solid rgba(37, 99, 235, 0.08);

    box-shadow: var(--shadow);

}

/* ==========================================================================
   7. FORM TITLE SECTION
   ========================================================================== */

.form-title-section {

    display: flex;
    align-items: center;

    gap: 12px;

    padding-bottom: 18px;

    margin-bottom: 28px;

    border-bottom: 1px solid var(--border-color);

}

.form-title {

    font-size: 22px;
    font-weight: 700;
    margin: 0;

    color: var(--primary-dark);

}

.form-title-section img {

    width: 24px;
    height: 24px;

}

/* ==========================================================================
   8. FORM LAYOUTS
   ========================================================================== */

.grid-container {

    display: grid;

    row-gap: 24px;

}

.grid-top-row {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 24px;

}

.grid-bottom-row {

    display: grid;

    grid-template-columns: 3fr 2fr;

    gap: 24px;

}

.form-arrangement {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 24px;

}

.form-arrangement-item,
.form-arangement-item {

    display: flex;
    flex-direction: column;

    width: 100%;

}

/* ==========================================================================
   9. INPUTS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {

    width: 100%;

    font-size: 15px;

    padding: 14px 16px;

    border-radius: var(--radius-sm);

    border: 1px solid var(--border-color);

    background: #fff;

    outline: none;

    transition: var(--transition-fast);

}

/* Hover */

input:hover,
textarea:hover,
select:hover {

    border-color: var(--border-hover);

}

/* Focus */

input:focus,
textarea:focus,
select:focus {

    border-color: var(--border-focus);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12);

}

/* ==========================================================================
   10. TEXTAREA
   ========================================================================== */

textarea {

    resize: vertical;

    min-height: 150px;

}

/* ==========================================================================
   11. SELECT
   ========================================================================== */

select {

    appearance: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 16px center;

    padding-right: 40px;

    cursor: pointer;

}

/* ==========================================================================
   12. RADIO BUTTONS
   ========================================================================== */

.radio-buttons {

    display: flex;
    flex-wrap: wrap;

    gap: 24px;

    margin-top: 10px;

}

.radio-buttons > div {

    display: flex;
    align-items: center;

    gap: 8px;

}

.radio-buttons input[type="radio"] {

    width: 18px;
    height: 18px;

    cursor: pointer;

}

.radio-buttons label {

    margin-bottom: 0;

    cursor: pointer;

}

/* ==========================================================================
   13. NOTE BOX
   ========================================================================== */

#note {

    background: var(--primary-light);

    border: 1px solid #D7E5FC;

    border-radius: var(--radius-md);

    padding: 20px;

    height: fit-content;

}

#note-title {

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

}

#note-title h6 {

    font-size: 18px;
    font-weight: 700;
    margin: 0;

    color: #0B4EC9;

}

#note-icon {

    width: 20px;
    height: 20px;

    stroke  : var(--accent-blue);

    stroke-width: 2.5;

}

#note ul {

    padding-left: 20px;

}

#note li {

    margin-bottom: 8px;

    color: #1e3a8a;

    font-size: 14px;

}

/* ==========================================================================
   14. DECLARATION
   ========================================================================== */

#declaration-content {

    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 10px 0;

}

.declaration {

    width: 20px;
    height: 20px;

    margin-top: 3px;

    cursor: pointer;

    flex-shrink: 0;

}

#declaration-content label {

    font-size: 15px;
    line-height: 1.5;

    font-weight: 500;

}

/* ==========================================================================
   15. SUBMIT BUTTON
   ========================================================================== */

input[type="submit"] {

    background: var(--accent-blue);

    color: white;

    border: none;

    padding: 14px 34px;

    border-radius: var(--radius-sm);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--transition-fast);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.18);

}

input[type="submit"]:hover {

    background: #1d4ed8;

    transform: translateY(-2px);

}

/* ==========================================================================
   16. TABLETS
   ========================================================================== */

@media (max-width: 992px) {

    section {

        width: 95%;

        padding-top: 30px;
        padding-bottom: 30px;

    }

    /* .form-head {

        flex-direction: column;

        align-items: flex-start;

        gap: 30px;

    } */

    .form-head-sec-1-content h1 {
        font-size: 35px;
    }

    .grid-bottom-row {

        grid-template-columns: 1fr;

    }

    #form-head-sec-2-img {

        max-height: 200px;

        align-self: center;

    }

}

/* ==========================================================================
   17. MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    section {

        width: 100%;

        padding: 20px 16px;

    }

    #grievance-logo {
        width: 70px;
    }


    #form-head-sec-2-img {
        min-width: 150px;
        
        
    }

    .form-sec {

        padding: 22px;

    }

    /* .form-head {

        text-align: center;

        align-items: center;

    }

    .form-head-sec-1 {

        flex-direction: column;

        align-items: center;

    } */

    .form-head-sec-1-content h1 {

        font-size: 22px;
        margin: 0;

    }

    .form-head-sec-1-content p {

        font-size: 13px;

    }

    .radio-buttons {

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

    }

    .form-title  {
        font-size: 18px;
    }

    .grid-top-row,
    .form-arrangement {

        grid-template-columns: 1fr;

    }

    input[type="submit"] {

        width: 100%;

    }

}

/* ==========================================================================
   18. SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .form-sec {

        padding: 18px;

        border-radius: 14px;

    }

    p, input,label, select {
        font-size: 14px;
    }

    

    
    .form-head {

        text-align: center;

        align-items: center;

        margin-bottom: 20px;

    }

    .form-head-sec-1 {

        flex-direction: column;

        align-items: center;

    }

    .form-title-section {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .form-title {

        font-size: 16px;

    }

    .form-title-section img {
        width: 16px;
        height: 16px;
    }

    .form-head-sec-1-content h1 {

        font-size: 28px;

    }

    .form-head-sec-1-content p {
        margin: 0;
    }

    #grievance-logo {

        width: 50px;

    }

    #form-head-sec-2-img {

        display: none;

    }

    input,
    textarea,
    select {

        font-size: 14px;

        padding: 8px 12px !important;

        border-radius: 5px !important;

    }

    .radio-buttons {
        gap: 6px;
    }

    .radio-buttons label {
        margin: 0 !important;
    }

    .form-arrangement-item p, .form-arrangement-item label  {
        margin-bottom: 4px;
    }

   
}

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */

.hidden {

    display: none !important;

}

fieldset {

    border: none !important;

}