/**
 * Contact Form 7 Modal Styles
 * Version: 1.0.0
 */

/* ===========================
   Contact Form 7 Modal
   =========================== */

.scb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.scb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scb-modal-active .scb-modal-overlay {
    opacity: 1;
}

.scb-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.scb-modal-active .scb-modal-content {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.scb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.scb-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.scb-modal-body {
    padding: 40px 30px 30px;
    overflow-y: auto;
    max-height: 90vh;
}

.scb-modal-body h2 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* Contact Form 7 Form Styles Inside Modal */
.scb-modal-body .wpcf7 {
    margin: 0;
}

.scb-modal-body .wpcf7-form p {
    margin-bottom: 15px;
}

.scb-modal-body .wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.scb-modal-body .wpcf7-form input[type="text"],
.scb-modal-body .wpcf7-form input[type="email"],
.scb-modal-body .wpcf7-form input[type="tel"],
.scb-modal-body .wpcf7-form input[type="url"],
.scb-modal-body .wpcf7-form textarea,
.scb-modal-body .wpcf7-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.scb-modal-body .wpcf7-form input:focus,
.scb-modal-body .wpcf7-form textarea:focus,
.scb-modal-body .wpcf7-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.scb-modal-body .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.scb-modal-body .wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scb-modal-body .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scb-modal-body .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

.scb-modal-body .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.scb-modal-body .wpcf7-validation-errors {
    border: 1px solid #f5c6cb;
    background: #f8d7da;
    color: #721c24;
}

.scb-modal-body .wpcf7-mail-sent-ok {
    border: 1px solid #c3e6cb;
    background: #d4edda;
    color: #155724;
}

.scb-modal-body .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Mobile Modal Styles */
@media screen and (max-width: 768px) {
    .scb-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .scb-modal-body {
        padding: 35px 20px 20px;
    }

    .scb-modal-body h2 {
        font-size: 24px;
    }

    .scb-modal-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        font-size: 16px;
    }
}