@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    padding: 0;
    margin: 0;
}

body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1450px;
    padding: 32px;
    /* height: 100vh; */
}

:root {
    --kore-purple: #7b3eba;
    --kore-blue: #00b4e5;
    --kore-blue-dark: #15537e;
    --input-border: #e5e5e5;
    --text-muted: #6b7280;
    --stepper-inactive: #e5e5e5;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.btn-signup-trigger {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    padding: 12px 32px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: var(--kore-blue);
    border: none;
    border-radius: 8px;
    color: white;
    transition: background 0.2s;
}

.btn-signup-trigger:hover {
    background: #1d4ed8;
    color: white;
}

/* Modal overrides */
.modal-dialog-signup {
    max-width: 1105px;
    width: 1105px;
}

@media (max-width: 1140px) {
    .modal-dialog-signup {
        width: 95vw;
        max-width: 95vw;
    }
}
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.modal-body {
    padding: 0;
    display: flex;
    min-height: 520px;
}

/* Left panel - Full image display, no cropping */
.modal-left {
    flex: 0 0 45%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-left-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right panel - Form (Figma: 120px left/right padding) */
.modal-right {
    flex: 1;
    padding: 70px 120px;
    background: white;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.modal-close:hover {
    opacity: 1;
}

/* Stepper - empty circles (no numbers) */
.signup-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stepper-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--stepper-inactive);
    background: white;
    transition: all 0.2s;
}

.stepper-step.active .stepper-circle {
    border-color: var(--kore-blue);
}

.stepper-step.completed .stepper-circle {
    border-color: var(--kore-blue);
    background-color: var(--kore-blue);
    background-image: url("/images/auth/images/stepper-check-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 8px;
}

.stepper-label {
    font-size: 14px;
    font-weight: 300;
    margin-top: 4px;
    color: #aaa;
}

.stepper-step.active .stepper-label,
.stepper-step.completed .stepper-label {
    color: var(--kore-blue);
}

.stepper-connector {
    flex: 1;
    min-width: 40px;
    max-width: 80px;
    height: 0;
    border-top: 2px dashed var(--stepper-inactive);
    margin-bottom: 24px;
    margin-left: -6px;
    margin-right: -6px;
}

.stepper-connector.completed {
    border-top-color: var(--kore-blue);
}

/* Form */
.signup-form-title {
    font-size: 24px;
    font-weight: 500;
    color: #0c2640;
    text-align: center;
    margin-bottom: 10px;
}

.signup-form-subtitle {
    font-size: 14px;
    color: #aaa;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
}

.input-group-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--input-border);
    border-radius: 0;
    padding-bottom: 10px;
}

.input-group-icon .form-control {
    padding: 0;
    border: 0;
    min-height: 38px;
}

.input-group-icon:has(.password-toggle) .form-control {
    padding-right: 44px;
}

.input-group-icon .form-control:focus {
    border-color: var(--kore-blue);
    box-shadow: none;
}

.input-group-icon .form-control::placeholder {
    font-weight: 400;
    color: #aaa;
}

/* .input-group-icon .input-icon {
    position: absolute;
    left: 10px;
    top: 33%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
} */

.input-group-icon .input-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}
.input-group-icon .input-icon img {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.field-error {
    display: block;
    font-size: 12px;
    color: #dc3545;
    text-align: left;
    margin-top: 4px;
}

.choice-error {
    font-size: 12px;
    color: #dc3545;
    margin: 15px 0 8px 0;
}

/* Select2 in signup - match input style */
.input-group-icon-select .select2-container {
    width: 100% !important;
}

.input-group-icon-select
    .select2-container--default
    .select2-selection--single {
    border: 0;
    border-bottom: 1px solid var(--input-border);
    border-radius: 0;
    height: 38px;
    padding: 8px 28px 8px 12px;
    background: transparent;
    padding-left: 0;
}

.input-group-icon-select
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding: 0;
    line-height: 20px;
}

.input-group-icon-select
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 36px;
    right: 8px;
}

.input-group-icon-select
    .select2-container--default.select2-container--focus
    .select2-selection--single,
.input-group-icon-select
    .select2-container--default.select2-container--open
    .select2-selection--single {
    border-color: var(--kore-blue);
    outline: none;
}

.input-group-icon-select
    .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    display: flex;
    align-items: center;
}

/* State select with icon: full-width border like Country (border on parent, not Select2) */
.input-group-icon-select.input-group-icon-with-icon {
    border-bottom: 1px solid var(--input-border);
}
.input-group-icon-select.input-group-icon-with-icon
    .select2-container--default
    .select2-selection--single {
    border-bottom: none;
    height: 38px;
}
.input-group-icon-select.input-group-icon-with-icon:focus-within {
    border-bottom-color: var(--kore-blue);
}

.btn-continue {
    width: 100%;
    padding: 13px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 16px;
    background: var(--kore-blue);
    border: none;
    border-radius: 5px;
    color: white;
    margin-top: 25px;
}

.btn-continue:focus {
    box-shadow: 0 2px 8px rgba(0, 180, 229, 0.25);
}

.btn-continue:hover {
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 229, 0.3);
}

/* Step nav buttons - Figma style */
.signup-step-content .btn-outline-secondary {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 13px 24px;
    border-radius: 10px;
    border: none;
    background: #f0f0f0;
    color: #666666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.signup-step-content .btn-outline-secondary:hover {
    background: #e8e8e8;
    color: #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signup-step-content .btn-outline-secondary:focus {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.signup-step-content .btn-continue {
    border-radius: 10px;
    padding: 13px 24px;
}

.signup-step-content .buttons_wrapper {
    gap: 15px !important;
    margin-top: 25px;
}

.signup-step-content .buttons_wrapper button {
    width: 50%;
}

.signup-step-content .buttons_wrapper .btn-continue {
    margin-top: 0;
}

.btn-outline-secondary {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    border-radius: 8px;
    border-color: var(--input-border);
    color: var(--text-muted);
}
.btn-outline-secondary:hover {
    border-color: var(--stepper-inactive);
    color: #374151;
    background: #f9fafb;
}

.choice-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.choice-options-other {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.choice-options-other.hidden {
    display: none !important;
}

.choice-options.other-selected .hide-when-other-selected {
    display: none !important;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.choice-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 25px;
    height: 25px;
    margin: 0;
    cursor: pointer;
}

.choice-checkbox {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border: 1px solid var(--kore-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.choice-check-icon {
    width: 14px;
    height: 10px;
    opacity: 0;
    transform: scale(0.3);
    transition:
        opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.choice-option input:checked + .choice-checkbox .choice-check-icon,
.choice-option
    .choice-checkbox-input:checked
    + .choice-checkbox
    .choice-check-icon {
    opacity: 1;
    transform: scale(1);
}

.choice-product-display {
    font-weight: 700;
    color: var(--kore-blue-dark);
    margin-left: 4px;
}

.choice-product-display.animate-in {
    animation: productDisplayPop 0.35s ease-out;
}

@keyframes productDisplayPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.additional-comment-section {
    margin-top: 15px;
    animation: productSectionSlide 0.35s ease-out;
}

.additional-comment-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
}

.additional-comment-textarea:focus {
    outline: none;
    border-color: var(--kore-blue);
    box-shadow: none;
}

.additional-comment-textarea::placeholder {
    color: var(--text-muted);
}

.product-selection-section {
    margin-top: 15px;
    animation: productSectionSlide 0.35s ease-out;
}

@keyframes productSectionSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-selection-title {
    font-size: 14px;
    font-weight: 600;
    color: #0c2640;
    margin-bottom: 10px;
    text-align: left;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-btn {
    padding: 12px 16px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    background: #F5F5F5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-btn:hover {
    background: #e8e8e8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-btn.selected {
    background: var(--kore-blue);
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 180, 229, 0.35);
}

.signup-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    gap: 16px;
}

.signup-divider::before,
.signup-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--input-border);
}

.signup-divider span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.signup-links {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
    text-align: center;
}

.signup-links a {
    color: var(--kore-blue);
    font-weight: 600;
    text-decoration: none;
}
.signup-links a:hover {
    text-decoration: underline;
}

.signup-footer {
    margin-top: 30px;
    text-align: center;
}

.signup-footer .powered-by {
    font-size: 14px;
    font-weight: 500;
    color: #707070;
    margin-bottom: 4px;
}

.signup-footer .kore-logo {
    height: 22px;
}

/* Step content visibility */
.signup-step-content {
    display: none;
}

.signup-step-content.active {
    display: block;
}

/* Password toggle - ensure icon is visible and clickable */
.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.7;
    z-index: 2;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle img {
    width: 20px;
    height: 20px;
    display: block;
}
