/* form.css */
:root {
    --color-primary: #22435E;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text-blue: #0F47AD;
    --color-btn: #5489EA;
    --color-hover-bg: #0000000d;
    --color-divider: #0000001a;
    --color-page-bg: #f4f7fc;
    --color-card-bg: #e7effe;
    --color-accent: #2f89ff;
    --color-muted-text: #7f8ea3;
    --color-input-bg: #ffffff;
    --color-input-border: #e0e7f5;
    --color-input-placeholder: #aab6cc;
    --color-error: #E5271A;
    --color-disabled: #d7e2f4;
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 40px rgba(15, 71, 173, 0.06);
    --font-base: "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --fz-base: 16px;
}

/* Base */

body {
    font-family: var(--font-base);
}

.application-page {
    background-color: var(--color-page-bg);
    padding: 80px 0;
}

.application-container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Stepper */

.application-stepper {
    width: 222px;
}

.stepper-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 0;
    cursor: default;
}

.stepper-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #BBC9DD;
    background-color: var(--color-white);
    color: #BBC9DD;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-label {
    font-size: 14px;
    color: #BBC9DD;
    white-space: nowrap;
    font-weight: 700;
}

.stepper-item.is-active .stepper-circle {
    border-color: var(--color-btn);
    background-color: var(--color-btn);
    color: #fff;
    border: 2px solid var(--Primary-300, #9DBEFB);
}

.stepper-item.is-active .stepper-label {
    color: #3C74DD;
    font-weight: 700;
}

.stepper-item.is-complete .stepper-circle {
    border-color: #35c36c;
    background-color: #35c36c;
    color: #fff;
}

.stepper-item.is-complete .stepper-label {
    color: #35c36c;
}

/* Dotted placeholders between steps */

.stepper-dots {}

.stepper-dots-placeholder {
    display: block;
    width: 8px;
    margin-left: 11px;
    margin-top: 3px;
    filter: grayscale(100%);
}

.stepper-dots.is-active .stepper-dots-placeholder {
    filter: grayscale(0%);
}

.stepper-dots.is-complete .stepper-dots-placeholder {
    filter: brightness(0) saturate(100%) invert(63%) sepia(86%) saturate(367%) hue-rotate(69deg) brightness(96%) contrast(89%);
}


/* Main card */

.application-main {
    flex: 1;
}

.form-card {
    background-color: #E7EFFE;
    border-radius: 24px;
    padding: 32px;
}

/* Header */

.form-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.form-card__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 900;
    color: #1D2430;
}

.form-card__downloads {
    display: flex;
    align-items: center;
    gap: 18px;
}

.download-link {
    border: none;
    padding: 0;
    background: none;
    font-size: 14px;
    color: #225BC3;
    cursor: pointer;
    font-family: 'Noto Sans Georgian';
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Body */

.form-card__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sections */

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section__title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #1D2430;
    display: flex;
    gap: 12px;
}

/* Fields layout */

.field-grid {
    display: grid;
    grid-row-gap: 18px;
    grid-column-gap: 24px;
}

.field-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field--full {
    grid-column: 1 / -1;
}

/* Inputs */

.form-label {
    font-size: 11px;
    font-weight: 400;
    color: #394960;
    ,
    CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
}

.form-input {
    width: 100%;
    border-radius: 24px;
    border: 2px solid #D7E2F4;
    background-color: #FBFCFE;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    /* color: #87A0C5; */
    color: #131820;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    appearance: none;
    font-family: 'Noto Sans Georgian';
}

.form-input::placeholder {
    color: #87A0C5;
}

.form-input:focus {
    border-color: #60799F;
    box-shadow: 0 0 0 1px rgba(84, 137, 234, 0.2);
}

/* Selects */

.form-select {
    padding-right: 40px;
}

/* Icon wrapper for inputs */

.form-input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Only transparent placeholder; icons will be added later via background-image */

.input-icon--calendar,
.input-icon--chevron {
    border-radius: 50%;
}

/* Toggle group */

.toggle-group {
    padding: 0;
    display: inline-flex;
    gap: 8px;
}

.toggle-option {
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: transparent;
    color: var(--color-muted-text);
    white-space: nowrap;
    font-family: 'Noto Sans Georgian';
    background-color: #FBFCFE;
    color: #87A0C5;
    display: flex;
    gap: 4px;
    align-items: center;
    max-width: 137px;
    width: 100%;
}

.toggle-option.is-active {
    color: #131820;
}

.toggle-option.is-active .checkbox-active {
    display: flex;
}

.toggle-option.is-active .checkbox-disabled {
    display: none;
}

.checkbox-active {
    display: none;
}

.checkbox-disabled {
    display: flex;
}

/* Phone field */

.phone-wrapper {
    display: flex;
    align-items: center;
    border-radius: 999px;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    padding-right: 16px;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: #4D6180;
    font-size: 12px;
    color: #FBFCFE;
    margin: 0 12px;
    font-weight: 600;
}

.phone-input {
    border-radius: 0;
    border: none;
    padding: 10px 0 10px 6px;
    box-shadow: none;
}

.phone-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Textarea */

.form-textarea {
    border-radius: 20px;
    min-height: 160px;
    resize: vertical;
    padding: 16px 20px;
}

/* Attachments */

.attachment-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--Gray-200, #D7E2F4);
    box-shadow: 0px 1px 2px 0px #5489EA0D;
    background: #FBFCFE;
    padding: 8px 12px;
    border-radius: 24px;
}

.btn-attachment {
    border-radius: 999px;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    background-color: #4D6180;
    color: #FBFCFE;
    cursor: pointer;
    font-family: 'Noto Sans Georgian';
    font-weight: 600;
    display: flex;
    gap: 4px;
}

.attachment-hint {
    font-size: 13px;
    color: var(--color-muted-text);
}

.attachment-input {
    display: none;
}

/* Info box (step 3) */

.info-box {
    background-color: #CEDEFD;
    border-radius: 24px;
    padding: 24px 16px;
    display: flex;
}

.info-box__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #c0d6ff;
}

.info-box__title {
    margin-bottom: 12px;
}

.info-list {
    font-size: 12px;
    color: #394960;
    list-style: none;
    display: flex;
    gap: 24px;
    flex-direction: column;
    font-weight: 400;
}



.info-list li {
    display: flex;
    gap: 8px;
}

.info-list li::before {
    content: '';
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDEyTDE4IDE0VjE2SDEzVjIyTDEyIDIzTDExIDIyVjE2SDZWMTRMOCAxMlY1SDdWM0gxN1Y1SDE2VjEyWk04Ljg1IDE0SDE1LjE1TDE0IDEyLjg1VjVIMTBWMTIuODVMOC44NSAxNFoiIGZpbGw9IiMzQzc0REQiLz4KPC9zdmc+Cg==);
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    display: flex;
}

/* Errors */

.field-error {
    display: none;
    font-size: 12px;
    color: var(--color-error);
}

/* Footer buttons */

.form-card__footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.form-card__footer--split {
    justify-content: space-between;
    align-items: center;
}

.btn {
    border-radius: var(--radius-pill);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease;
}

.btn-primary {
    background-color: var(--color-btn);
    color: #fff;
    border-color: var(--color-btn);
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 20px;
    border-radius: 24px;
    border: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: 'Noto Sans Georgian';
    /* margin: 0 auto; */
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #436fcf;
    border-color: #436fcf;
}

.btn-primary:disabled {
    background-color: var(--color-disabled);
    border-color: var(--color-disabled);
    color: #7f8ea3;
    cursor: default;
}

.btn-secondary {
	font-family: 'Noto Sans Georgian';
    background-color: #f5f7ff;
    border-color: #225BC3;
    color: #225BC3;
    display: flex;
    gap: 4px;
	align-items: center;
}

/* Steps visibility */

.form-step {
    display: none;
}

.form-step.is-active {
    display: block;
}

/* Responsive */

@media (max-width: 1024px) {
    .application-container {
        flex-direction: column;
        padding: 0 16px;
    }

    .application-stepper {
        width: 100%;
    }



    .field-grid--three,
    .field-grid--two {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-card__downloads {
        flex-wrap: wrap;
        gap: 10px;
        order: -1;
    }
}

/* Placeholder simulation: hides date text until value exists */
.form-input:invalid::-webkit-datetime-edit,
.form-input:required:invalid::-webkit-datetime-edit {
    color: transparent;
    /* hides default empty text */
}

/* Remove default browser date icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.form-input:invalid:after {
    content: attr(placeholder);
    color: #858585;
    position: absolute;
    left: 16px;
    pointer-events: none;
    font-size: 16px;
}

.input-error {
    border-color: #FDA29B;
}


/* Custom Select Wrapper */
.custom-select {
    position: relative;
    width: 100%;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

/* Default Trigger Button */
.select-trigger {
    width: 100%;
    background: #fff;
    border: 2px solid #D7E2F4;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 14px;
    color: #87A0C5;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    font-family: 'Noto Sans Georgian';
}

/* Active State */
.custom-select.open .select-trigger {
    border-color: #60799F;
    background-color: #F5F9FE;
    color: #22435E;
}

/* Down Arrow */
.select-trigger::after {
    content: "";
    font-size: 14px;
    color: #7F8EA3;
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNyA3TDEzIDEiIHN0cm9rZT0iIzk5QURDQyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 12px;
    height: 6px;
}

.custom-select.open .select-trigger::after {
    content: "";
    color: #5489EA;
    width: 12px;
    height: 6px;
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMyA3TDcgMUwxIDciIHN0cm9rZT0iIzk5QURDQyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Dropdown Panel */
.select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: #FBFCFE;
    border-radius: 8px;
    padding: 4px 4px;
    display: none;
    z-index: 99;
    border: 1px solid var(--Gray-25, #FBFCFE);
    box-shadow: 0px 4px 4px 0px #5489EA1A;
}

/* Visible */
.custom-select.open .select-options {
    display: block;
}

/* Items */
.select-options li {
    list-style: none;
    padding: 10px 8px;
    cursor: pointer;
    transition: 0.12s;
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    border-radius: 6px;
}

/* Hover */
.select-options li:hover {
    background-color: #ECF1F9;
}

/* Selected Item */
.select-options li.selected {
    background-color: #ECF1F9;
    color: #22435E;
    font-weight: 600;
}



.select-options li.selected::after {
    content: "âœ”";
    float: right;
    color: #225BC3;
}


/* âœ” */


@media (max-width: 1024px) {
    .download-link {
        border: 1px solid #9DBEFB;
        padding: 12px 0;
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }

    .form-card__header {
        margin-bottom: 24px;
    }

    .form-card__title {
        font-size: 24px;
    }

    .form-card {
        padding: 32px 16px;
    }

    .attachment-row {
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-secondary {
        padding: 12px 19px;
    }

    .stepper-list {
        display: flex;
        justify-content: space-between;
    }

    .stepper-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0px 0;
        cursor: default;
        flex-direction: column;
    }

    .stepper-label {
        font-size: 10px;
        color: #BBC9DD;
        white-space: nowrap;
        font-weight: 700;
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .stepper-dots-placeholder {
        transform: rotate(90deg);
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .stepper-dots {
        width: 96px;
        display: flex;
        justify-content: center;
    }


    input.date-field:after {
        color: #CCC;
        content: attr(placeholder) !important;
        font-size: 14px
    }

    input.date-field:focus:after {
        content: '' !important;
    }


}


.form-result {
    text-align: center;
    max-width: 436px;
    margin: 135px auto;
}

.result-icon {
    width: 63px;
    height: 63px;
    margin: 0 auto 22px;
    border-radius: 50%;
}

.result-icon.success {
    background: url('/wp-content/uploads/2025/11/1.svg') center/cover no-repeat;
}

.result-icon.error {
    background: url('/wp-content/uploads/2025/11/Frame-333.svg') center/cover no-repeat;
}

.form-result h2 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #0A0D0F;
}

.form-result p {
    font-size: 16px;
    margin-bottom: 32px;
    color: #33414D;
    font-weight: 400;
}

.form-result .btn-primary {
  margin: 0 auto;
}