/* 
   Contact Form 7 Styles
   Based on Albipa Contact Styling
*/

.hidden-fields-container, 
.hidden-fields-container fieldset {
    display: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* Container Styling */
.wpcf7 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Semi-transparent glass container */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.wpcf7 * {
    box-sizing: border-box;
}

/* Form Structure Helpers (to be used in CF7 editor) */
.wpcf7 .form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.wpcf7 .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form Control Wrap (CF7 standard wrapper) */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Labels */
.wpcf7 label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: block;
}

.wpcf7 .required {
    color: #ef4444;
}

/* Input & Textarea Fields */
.wpcf7 .wpcf7-form-control,
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    margin-top: 5px;
}

.wpcf7 input:focus, 
.wpcf7 textarea:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
/* Submit Button - Modern Style */
.wpcf7 .wpcf7-submit {
    background-color: #0073aa; /* Change this to your brand color */
    border: none;
    border-radius: 5px; /* Rounds the corners */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 12px 30px; /* Increased horizontal padding for a button shape */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 20px auto 0;
    text-transform: uppercase; /* Makes it look more like a CTA */
    letter-spacing: 1px;
}

/* Hover effect */
.wpcf7 .wpcf7-submit:hover {
    background-color: #005177; /* Darker shade on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Click effect */
.wpcf7 .wpcf7-submit:active {
    transform: translateY(0); /* Sinks back down when clicked */
}

.wpcf7 .wpcf7-submit:hover {
    opacity: 0.8;
}

/* Spinner */
.wpcf7 .ajax-loader {
    display: block;
    margin: 10px auto;
}

/* Validation & Errors */
.wpcf7 .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    
    text-align: center;
}

/* Sub-labels and Help Text */
.wpcf7 .sub-label, 
.wpcf7 .help-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    font-weight: bold;
    display: block;
}

/* Divider */
.wpcf7 .divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wpcf7 .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .wpcf7 {
        padding: 30px 20px;
    }
}
