/* =Contact Form 7 Styles
----------------------------------------------- */

/* Form container - FIXED VERSION */
div.wpcf7 {
    margin: 2em 0;
    padding: 30px;
    /* Increased padding for better spacing */
    background: #f7e0e0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* Ensures padding is included in width */
    overflow: hidden;
    /* Contains child elements */
    width: 100%;
    /* Ensures container doesn't exceed parent width */
}

.wpcf7-text {
	font-family: 'Manrope';
}

/* Apply border-box to all form elements */
.wpcf7 *,
.wpcf7 *:before,
.wpcf7 *:after {
    box-sizing: border-box;
}

/* Form elements - FIXED VERSION */
.wpcf7-form p {
    margin-bottom: 1.5em;
    margin-left: 0;
    margin-right: 0;
}


.wpcf7-form-control {
    width: 100%;
    max-width: 100%;
    /* Prevents overflow */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
    /* Ensures proper width calculation */
}

/* Special fix for radio/checkbox inputs */
.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item {
    display: inline-block;
    margin-right: 15px;
    white-space: nowrap;
}

/* Labels - Adjusted for better containment */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    width: 100%;
}

.wpcf7-form-control-wrap select {
  appearance: none;
  padding: 10px;
  font-size: 16px;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 12px;
}

/* Submit button - FIXED VERSION */
.wpcf7-submit {
    background-color: #000000;
    color: rgb(255, 255, 255);
    border: 1px solid #000;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    /* Changed from default */
    margin: 0 auto;
    /* Centers the button */
}

.wpcf7-submit:hover {
    background-color: #000;
    color: #f7e0e0;
    border: 1px solid #f7e0e0;
    border-radius: 8px;
}

/* Validation - Adjusted positioning */
.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    width: 100%;
}

/* Response output - Fixed width */
.wpcf7-response-output {
    padding: 15px;
    margin: 20px 0 0 0;
    /* Adjusted margins */
    border-radius: 4px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    div.wpcf7 {
        padding: 20px 15px;
    }

    .wpcf7-submit {
        width: 100%;
        /* Full width on mobile */
    }
}