@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;600;700&display=swap');

:root {
    --gold: #806529;
    --gold-dark: #654d16;
    --gold-hover: #94752e;
    --gold-light: #f4eedf;

    --black: #171717;
    --gray-text: #686864;
    --gray-background: #f6f5f1;
    --gray-border: #e3ded2;

    --white: #ffffff;
    --success: #2f6b43;
    --danger: #a53b3b;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 28px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(128, 101, 41, 0.08),
            transparent 32%
        ),
        var(--gray-background);
    color: var(--black);
    font-family: 'Tajawal', sans-serif;
}

html[lang="hi"] body {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

html[lang="ur"] body {
    font-family: 'Noto Sans Arabic', 'Tajawal', sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-wrapper {
    width: min(100% - 32px, 1100px);
    margin: 0 auto;
}

.site-header {
    padding: 28px 0 16px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 350px;
  
}

.brand-label {
    margin-bottom: 3px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand-title {
    margin: 0;
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 600;
}

.language-page {
    padding: 34px 0 60px;
}

.language-panel {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 50px rgba(34, 29, 18, 0.07);
}

.language-intro {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 700;
}

.language-intro h2 {
    margin: 0;
    font-size: clamp(27px, 5vw, 40px);
    font-weight: 600;
}

.language-intro p {
    margin: 14px 0 0;
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.8;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.language-card {
    position: relative;
    display: block;
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    background: var(--white);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.language-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(45, 37, 20, 0.08);
}

.language-card.selected {
    border-color: var(--gold);
    background: var(--gold-light);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.language-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.language-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 42px;
    border-radius: 14px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-weight: 700;
}

.language-card.selected .language-icon {
    background: var(--gold);
    color: var(--white);
}

.language-name {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
}

.language-subtitle {
    margin: 7px 0 0;
    color: var(--gray-text);
    font-size: 14px;
}

.language-check {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    display: none;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
}

.language-card.selected .language-check {
    display: flex;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.primary-button {
    display: inline-flex;
    min-width: 180px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid var(--gold);
    border-radius: 13px;
    background: var(--gold);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    border-color: var(--gold-hover);
    background: var(--gold-hover);
}

.primary-button:disabled {
    transform: none;
    border-color: #b8ad95;
    background: #b8ad95;
    cursor: not-allowed;
}

.privacy-note {
    margin: 22px 0 0;
    color: var(--gray-text);
    font-size: 13px;
    text-align: center;
}

.site-footer {
    padding: 0 0 30px;
    color: var(--gray-text);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 780px) {
    .language-grid {
        grid-template-columns: 1fr;
    }

    .language-card {
        min-height: auto;
    }

    .language-icon {
        margin-bottom: 25px;
    }
}

@media (max-width: 520px) {
    .page-wrapper {
        width: min(100% - 20px, 1100px);
    }

    .site-header {
        padding-top: 15px;
    }

    .header-inner {
        align-items: flex-start;
    }

    .brand-logo {
        width: 350px;
        margin: auto;

    }

    .language-page {
        padding-top: 18px;
    }

    .language-panel {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .primary-button {
        width: 100%;
    }
}

.change-language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.change-language-button:hover {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold-dark);
}

.survey-page {
    padding: 25px 0 60px;
}

.survey-introduction {
    max-width: 900px;
    margin: 0 auto 25px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-large);
    background: var(--white);
}

.survey-introduction h2 {
    margin: 0;
    color: var(--black);
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.35;
}

.survey-introduction p:last-child {
    margin: 17px 0 0;
    color: var(--gray-text);
    line-height: 1.9;
}

.progress-card {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 20px;
    border: 1px solid var(--gray-border);
    border-radius: 18px;
    background: var(--white);
}

.progress-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 11px;
    font-size: 14px;
    font-weight: 600;
}

.progress-heading span:last-child {
    color: var(--gold-dark);
}

.progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 100px;
    background: #ece9e2;
}

.progress-bar {
    height: 100%;
    border-radius: 100px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-text);
    font-size: 13px;
}

.step-item span {
    display: inline-flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    background: var(--white);
    font-weight: 600;
}

.step-item.active {
    color: var(--gold-dark);
    font-weight: 600;
}

.step-item.active span {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.step-item.completed span {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold-dark);
}

.form-error {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border: 1px solid #dfb5b5;
    border-radius: 13px;
    background: #fff1f1;
    color: #8c2f2f;
    font-weight: 500;
}

.survey-step {
    max-width: 900px;
    margin: 0 auto;
}

.section-card {
    padding: clamp(22px, 4vw, 35px);
    border: 1px solid var(--gray-border);
    border-radius: 22px;
    background: var(--white);
}

.section-card-header,
.question-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.section-number,
.question-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-weight: 700;
}

.section-card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.section-card-header p {
    margin: 6px 0 0;
    color: var(--gray-text);
    font-size: 14px;
}

.company-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.required-mark {
    color: #a53b3b;
}

.form-group input,
.open-answer {
    width: 100%;
    border: 1px solid var(--gray-border);
    border-radius: 13px;
    outline: none;
    background: var(--white);
    color: var(--black);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input {
    min-height: 51px;
    padding: 12px 14px;
}

.open-answer {
    min-height: 145px;
    margin-top: 22px;
    padding: 15px;
    line-height: 1.8;
    resize: vertical;
}

.form-group input:focus,
.open-answer:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(128, 101, 41, 0.11);
}

.input-invalid {
    border-color: #b84242 !important;
    background: #fff8f8 !important;
}

.section-heading-block {
    margin-bottom: 20px;
    padding: 5px 3px;
}

.section-heading-block h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
}

.questions-list {
    display: grid;
    gap: 17px;
}

.question-card {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    background: var(--white);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.question-card-invalid {
    border-color: #b84242;
    box-shadow: 0 0 0 3px rgba(184, 66, 66, 0.08);
}

.question-content {
    flex: 1;
}

.question-content h3,
.question-content label {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

.question-content p {
    margin: 5px 0 0;
    color: var(--gray-text);
    font-size: 13px;
}

.rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.rating-option {
    position: relative;
    cursor: pointer;
}

.rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-option-box {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 9px;
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    background: var(--white);
    text-align: center;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.rating-option:hover .rating-option-box {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.rating-option input:checked + .rating-option-box {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold-dark);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.option-score {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1efe9;
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 700;
}

.rating-option input:checked +
.rating-option-box .option-score {
    background: var(--gold);
    color: var(--white);
}

.option-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.option-check {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    display: none;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 11px;
}

.rating-option input:checked +
.rating-option-box .option-check {
    display: flex;
}

.character-counter {
    margin-top: 8px;
    color: var(--gray-text);
    font-size: 12px;
    text-align: end;
}

.survey-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.survey-actions-end {
    justify-content: flex-end;
}

.secondary-button {
    display: inline-flex;
    min-width: 150px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid var(--gray-border);
    border-radius: 13px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-weight: 600;
}

.secondary-button:hover {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold-dark);
}

.button-loading {
    cursor: wait;
}

.loading-spinner {
    display: inline-block;
    width: 21px;
    height: 21px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: survey-spin 0.8s linear infinite;
}

.survey-closed-card {
    max-width: 700px;
    margin: 50px auto;
    padding: 45px 30px;
    border: 1px solid var(--gray-border);
    border-radius: 25px;
    background: var(--white);
    text-align: center;
}

.closed-icon {
    display: flex;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 30px;
    font-weight: 700;
}

.survey-closed-card h2 {
    margin: 0;
}

.survey-closed-card p {
    margin: 12px 0 0;
    color: var(--gray-text);
}

@keyframes survey-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 820px) {
    .rating-options {
        grid-template-columns: 1fr;
    }

    .rating-option-box {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 13px 15px;
        text-align: start;
    }

    .option-check {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 650px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .change-language-button {
        align-self: flex-start;
                margin: auto;
    }

    .company-fields-grid {
        grid-template-columns: 1fr;
    }

    .form-group-wide {
        grid-column: auto;
    }

    .step-list {
        grid-template-columns: 1fr;
    }

    .step-item {
        display: none;
    }

    .step-item.active {
        display: flex;
    }

    .survey-actions {
        flex-direction: column-reverse;
    }

    .survey-actions-end {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}

.thank-you-page {
    padding: 35px 0 65px;
}

.thank-you-card {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid var(--gray-border);
    border-radius: 28px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 18px 50px rgba(34, 29, 18, 0.07);
}

.thank-you-icon {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-dark);
}

.thank-you-icon svg {
    width: 43px;
    height: 43px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thank-you-card h2 {
    margin: 5px 0 0;
    font-size: clamp(27px, 5vw, 39px);
    font-weight: 600;
    line-height: 1.35;
}

.thank-you-message {
    max-width: 560px;
    margin: 17px auto 0;
    color: var(--gray-text);
    line-height: 1.85;
}

.submission-details {
    display: grid;
    gap: 1px;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    border-radius: 17px;
    background: var(--gray-border);
    text-align: start;
}

.submission-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 16px 18px;
    background: var(--gold-light);
}

.submission-detail span {
    color: var(--gray-text);
    font-size: 14px;
}

.submission-detail strong {
    color: var(--black);
    font-size: 15px;
    text-align: end;
}

.reference-number {
    color: var(--gold-dark) !important;
    letter-spacing: 0.04em;
}

.thank-you-home-button {
    margin-top: 28px;
}

.thank-you-note {
    margin: 18px 0 0;
    color: var(--gray-text);
    font-size: 13px;
}

@media (max-width: 560px) {
    .submission-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .submission-detail strong {
        text-align: start;
    }

    .thank-you-home-button {
        width: 100%;
    }
}
