/**
 * Luna Common Styles
 * Shared styles across all Luna theme pages
 */

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.luna-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.luna-modal.show {
    display: block;
    opacity: 1;
}

.luna-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.luna-modal.show .luna-modal-content {
    transform: translateY(0);
}

.luna-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.luna-close-modal:hover,
.luna-close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.luna-modal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    line-height: 1.4;
}

/* ==========================================================================
   Modal Form (CF7) Styles
   ========================================================================== */

.luna-modal-form-wrapper input[type="text"],
.luna-modal-form-wrapper input[type="tel"],
.luna-modal-form-wrapper input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 16px;
    border-radius: 0;
}

.luna-modal-form-wrapper input[type="text"]:focus,
.luna-modal-form-wrapper input[type="tel"]:focus,
.luna-modal-form-wrapper input[type="email"]:focus {
    border-color: #333;
    outline: none;
    background: #fff;
}

.luna-modal-form-wrapper input[type="submit"] {
    width: 100%;
    background-color: #3b55e6;
    color: white;
    padding: 15px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
    border-radius: 0;
    transition: background 0.3s ease;
}

.luna-modal-form-wrapper input[type="submit"]:hover {
    background-color: #141C2A;
}

.luna-modal-form-wrapper input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Checkbox styling in modal */
.luna-modal-form-wrapper .wpcf7-acceptance {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.luna-modal-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 8px;
}
