/* Marhi Contact Form Modal */
.marhi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.marhi-modal.is-open {
    display: flex;
}

.marhi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.marhi-modal-container {
    position: relative;
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 48px;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: marhiModalIn 0.35s ease;
}

@keyframes marhiModalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.marhi-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.marhi-modal-close:hover {
    color: #fff;
}

.marhi-modal-container h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.marhi-modal-subtitle {
    color: #999;
    margin: 0 0 32px;
    font-size: 15px;
    line-height: 1.5;
}

.marhi-form-group {
    margin-bottom: 20px;
}

.marhi-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
}

.marhi-form-group .required {
    color: #ff4b13;
}

.marhi-form-group input,
.marhi-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.marhi-form-group input:focus,
.marhi-form-group textarea:focus {
    outline: none;
    border-color: #ff4b13;
}

.marhi-form-group input.marhi-invalid,
.marhi-form-group textarea.marhi-invalid {
    border-color: #e74c3c;
}

.marhi-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.marhi-form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.marhi-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff4b13, #ff8f3d);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.marhi-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 75, 19, 0.4);
}

.marhi-submit-btn:active {
    transform: translateY(0);
}

.marhi-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success state */
#marhi-form-success {
    text-align: center;
    padding: 40px 0;
}

.marhi-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b13, #ff8f3d);
    color: #fff;
    font-size: 32px;
    margin: 0 auto 20px;
}

#marhi-form-success h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
}

#marhi-form-success p {
    color: #999;
    font-size: 15px;
}

/* Error state */
.marhi-error-text {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 12px;
}

/* Scrollbar styling */
.marhi-modal-container::-webkit-scrollbar {
    width: 6px;
}

.marhi-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.marhi-modal-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* Mobile */
@media (max-width: 600px) {
    .marhi-modal-container {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .marhi-modal-container h2 {
        font-size: 22px;
    }
}
