.modern-contact-form {
    height: 500px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

/* Form Container */
.contact-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.contact-form-step {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
    height: 100%;
}

.contact-form-step.active {
    display: flex;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 24px;
}

.step-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
}

.step-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field-group {
    margin-bottom: 4px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 2;
    color: #666;
    pointer-events: none;
}

.contact-input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.contact-input:focus {
    outline: none;
    border-color: #009f6b;
    box-shadow: 0 0 0 3px rgba(0, 159, 107, 0.1);
}

.contact-input.error {
    border-color: #ff4444;
}

.contact-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.contact-textarea:focus {
    outline: none;
    border-color: #009f6b;
    box-shadow: 0 0 0 3px rgba(0, 159, 107, 0.1);
}

.contact-textarea.error {
    border-color: #ff4444;
}

/* Contact Reason Cards */
.contact-reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2px;
}

.contact-reason-card {
    padding: 16px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #ffffff;
    min-height: 80px;
}

.contact-reason-card:hover {
    border-color: #009f6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 107, 0.1);
}

.contact-reason-card.active {
    border-color: #009f6b;
    background: rgba(0, 159, 107, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 107, 0.1);
}

.reason-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    color: #666;
    transition: all 0.3s ease;
}

.contact-reason-card.active .reason-icon {
    color: #009f6b;
}

.reason-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

/* Message Container */
.message-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Urgency Toggle */
.urgency-toggle {
    margin-top: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 22px;
    background: #e8e8e8;
    border-radius: 11px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input:checked+.toggle-slider {
    background: #009f6b;
}

.toggle-label input:checked+.toggle-slider:after {
    transform: translateX(22px);
}

.toggle-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Review Section */
.review-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.review-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.review-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.review-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    min-width: 70px;
}

.review-value {
    font-size: 13px;
    color: #222;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.message-preview-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    margin-top: 4px;
}

.preview-text {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Submit Container */
.submit-container {
    margin-top: 8px;
}

.submit-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #009f6b, #00c9a7);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 159, 107, 0.2);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Navigation */
.contact-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.nav-button {
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-button:hover:not(:disabled) {
    border-color: #009f6b;
    color: #009f6b;
    transform: translateY(-1px);
}

.nav-button:disabled,
.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #e8e8e8;
    color: #999;
}

.next-button {
    background: #009f6b;
    border-color: #009f6b;
    color: #ffffff;
}

.next-button:hover:not(:disabled) {
    background: #008a5c;
    border-color: #008a5c;
    color: #ffffff;
}

.nav-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-counter {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Error Messages */
.contact-error-message {
    font-size: 11px;
    color: #ff4444;
    margin-top: 4px;
    padding-left: 40px;
    display: none;
    animation: slideIn 0.3s ease;
}

.contact-error-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-contact-form {
        padding: 20px;
        /* height: 380px; */
        height: 100%;
    }

    .step-header h3 {
        font-size: 18px;
    }

    .contact-reason-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .contact-reason-card {
        padding: 14px 10px;
        min-height: 70px;
    }

    .reason-icon {
        width: 24px;
        height: 24px;
    }

    .reason-text {
        font-size: 12px;
    }

    .contact-input,
    .contact-textarea {
        padding: 12px 12px 12px 36px;
        font-size: 13px;
    }

    .input-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .submit-button {
        padding: 14px 20px;
        font-size: 14px;
    }

    .nav-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .nav-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .modern-contact-form {
        padding: 16px;
        /* height: 360px; */
        height: 100%;
    }

    .contact-reason-grid {
        grid-template-columns: 1fr;
    }

    .contact-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .step-counter {
        order: -1;
    }
}