/* CONTACT FORM STYLING */
.wpcf7-form {
    max-width: 650px;
    margin: 30px auto;
    padding: 40px;
    background: #F9F8F8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 12px 15px rgb(160, 160, 160);
}

/* Form Labels */
.wpcf7-form label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

/* Input Fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 10px;
	background-color: #fff;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out;
}

/* Focus Effect */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #CDAA27;
    outline: none;
}

/* Select Field */
.wpcf7-form select {
    background: #fff;
    cursor: pointer;
}

/* Checkboxes */
.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpcf7-list-item {
    display: flex;
    align-items: center;
    background: #eeeeee;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.wpcf7-list-item:hover {
    background: #ebe3c6;    
}

/* Textarea */
.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    background: #CDAA27;
    color: #000;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    width: 50%;
}

.wpcf7-form input[type="submit"]:hover {
    background: #A87F1F;
}

/* Center only the submit button */
.wpcf7-form p > input[type="submit"] {
    display: block;       /* make it a block element so margin works */
    margin: 0 auto;       /* center horizontally */
}

/* Full width on mobile */
@media (max-width: 600px) {
    .wpcf7-form p > input[type="submit"] {
        width: 100%;      /* full width on small screens */
    }
}

/* Error and Success Messages */
.wpcf7-response-output {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}

.wpcf7-not-valid-tip {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
}

.wpcf7-spinner {
    display: inline-block;
    margin-left: 10px;
}

/* Base styling */
.wpcf7-form input[type="file"] {
    background-color: #CDAA27;
    color: #000;
    padding: 10px 15px 10px 40px; /* leave space for icon */
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM96 224c17.67 0 32 14.33 32 32S113.7 288 96 288S64 273.7 64 256S78.33 224 96 224zM318.1 439.5C315.3 444.8 309.9 448 304 448h-224c-5.9 0-11.32-3.248-14.11-8.451c-2.783-5.201-2.479-11.52 .7949-16.42l53.33-80C122.1 338.7 127.1 336 133.3 336s10.35 2.674 13.31 7.125L160 363.2l45.35-68.03C208.3 290.7 213.3 288 218.7 288s10.35 2.674 13.31 7.125l85.33 128C320.6 428 320.9 434.3 318.1 439.5zM256 0v128h128L256 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 18px 18px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover outline */
.wpcf7-form input[type="file"]:hover {
    box-shadow: 0 0 0 2px rgba(205, 170, 39, 0.4);
}

/* Hide default file info */
.wpcf7-form input[type="file"]::after {
    display: none;
}

/* Label styling for custom file upload button */
.wpcf7-form input[type="file"]:active {
    border-color: #A87F1F;
}

/* File Name Display (after selecting a file) */
.wpcf7-form input[type="file"]::-webkit-file-upload-button {
    display: none;
}

.wpcf7-form input[type="file"]:valid {
    background-color: #eeeeee;
    color: #555;
}

.wpcf7-form input[type="file"]:valid::after {
    content: "File Selected";
    font-size: 12px;
    font-weight: normal;
    color: green;
}