/* Custom Modal Overlay */
.custom-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 99999; /* Put on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

/* Modal Content Box */
.custom-modal-box {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Open states */
.custom-modal-overlay.open {
    display: block;
}

.custom-modal-overlay.open .custom-modal-box {
    transform: scale(1);
    opacity: 1;
}

/* Close Button */
.custom-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #888888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.custom-modal-close:hover {
    color: #ff8920;
}

/* Header styling */
.custom-modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.custom-modal-header h3 {
    margin: 0 0 10px 0;
    font-family: 'Font Bold', sans-serif;
    color: #373737;
    font-size: 24px;
}

.custom-modal-header p {
    margin: 0;
    font-family: 'Font Regular', sans-serif;
    color: #656565;
    font-size: 14px;
}

/* Form inputs & structure */
.form-group-custom {
    margin-bottom: 20px;
    text-align: left;
}

.form-group-custom label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Font Medium', sans-serif;
    color: #373737;
    font-size: 14px;
    font-weight: 600;
}

.form-group-custom input[type="text"],
.form-group-custom input[type="email"],
.form-group-custom input[type="tel"],
.form-group-custom textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Font Regular', sans-serif;
    font-size: 15px;
    color: #373737;
    background-color: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form-group-custom input:focus,
.form-group-custom textarea:focus {
    border-color: #ff8920;
    background-color: #ffffff;
    outline: none;
}

/* Submit Button */
.submit-btn-custom {
    width: 100%;
    padding: 14px;
    background-color: #ff8920;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Font Bold', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(255, 137, 32, 0.3);
}

.submit-btn-custom:hover {
    background-color: #e57512;
}

.submit-btn-custom:active {
    transform: scale(0.98);
}

/* Status Notifications */
.form-status-custom {
    margin-top: 15px;
    font-family: 'Font Medium', sans-serif;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.form-status-custom.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-custom.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hidden Honeypot for spam bots */
.hidden-honeypot {
    display: none !important;
}

/* Responsive fixes */
@media (max-width: 576px) {
    .custom-modal-box {
        margin: 20% auto;
        padding: 20px 25px;
        width: 95%;
    }
    
    .custom-modal-header h3 {
        font-size: 20px;
    }
}
