/* Hinat Journey Builder - Form Styles */

.hinat-journey-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0;
}

.hinat-journey-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hinat-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hinat-form-title {
    font-size: 2rem;
    font-weight: 400;
    color: #4A3425;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hinat-form-description {
    font-size: 1.1rem;
    color: #6B5D4F;
    line-height: 1.6;
}

/* Progress Bar */
.hinat-progress-bar {
    width: 100%;
    height: 4px;
    background: #F4E8D8;
    border-radius: 2px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.hinat-progress-fill {
    height: 100%;
    background: #C97B5C;
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 16.66%;
}

/* Form Steps */
.hinat-form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hinat-step-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #4A3425;
    margin-bottom: 0.5rem;
}

.hinat-step-description {
    color: #6B5D4F;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Form Groups */
.hinat-form-group {
    margin-bottom: 1.5rem;
}

.hinat-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4A3425;
    font-weight: 500;
}

.hinat-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Checkbox Grid */
.hinat-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hinat-checkbox-option,
.hinat-radio-option {
    position: relative;
}

.hinat-checkbox-option input[type="checkbox"],
.hinat-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.hinat-checkbox-label,
.hinat-radio-label {
    display: block;
    padding: 1.5rem;
    background: #F4E8D8;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hinat-checkbox-label:hover,
.hinat-radio-label:hover {
    background: #E8D4B8;
    transform: translateY(-2px);
}

.hinat-checkbox-option input[type="checkbox"]:checked + .hinat-checkbox-label,
.hinat-radio-option input[type="radio"]:checked + .hinat-radio-label {
    background: #ffffff;
    border-color: #C97B5C;
    box-shadow: 0 4px 12px rgba(201, 123, 92, 0.2);
}

.hinat-option-title {
    font-weight: 600;
    color: #4A3425;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.hinat-option-description {
    font-size: 0.9rem;
    color: #6B5D4F;
    line-height: 1.4;
}

/* Radio Group */
.hinat-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Input Fields */
.hinat-input,
.hinat-select,
.hinat-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #D4B896;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.hinat-input:focus,
.hinat-select:focus,
.hinat-textarea:focus {
    outline: none;
    border-color: #C97B5C;
}

.hinat-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Navigation */
.hinat-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #D4B896;
}

/* Buttons */
.hinat-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hinat-btn-next,
.hinat-btn-submit {
    background: #C97B5C;
    color: #ffffff;
}

.hinat-btn-next:hover,
.hinat-btn-submit:hover {
    background: #4A3425;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hinat-btn-back {
    background: transparent;
    color: #4A3425;
    border: 2px solid #D4B896;
}

.hinat-btn-back:hover {
    border-color: #C97B5C;
    color: #C97B5C;
}

/* Form Footer */
.hinat-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6B5D4F;
    font-size: 0.9rem;
}

/* Loading State */
.hinat-form-loading {
    text-align: center;
    padding: 3rem;
}

.hinat-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #F4E8D8;
    border-top-color: #C97B5C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hinat-form-loading p {
    color: #6B5D4F;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hinat-journey-form-container {
        padding: 1.5rem;
    }

    .hinat-form-title {
        font-size: 1.5rem !important;
    }

    .hinat-form-description {
        font-size: 1rem;
    }

    .hinat-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .hinat-form-row {
        grid-template-columns: 1fr;
    }

    .hinat-form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .hinat-btn {
        width: 100%;
    }
}