/* Contact Form Component Styles */
.contact-form-section {
    padding: 60px 0;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}

.contact-form-header {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color, #2046a1);
    margin: 0 0 15px;
}

.contact-description {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    max-width: 800px;
 
    background-color: #fff;
    padding: 0;
}

.form-row {
    margin-bottom: 20px;
}

.form-row.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding:  15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color, #2046a1);
    outline: none;
}

.form-control.error {
    border-color: #ff4d4f;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Custom Select Styling */
.service-select-group select {
    display: none; /* Hide original SELECT element */
}

.service-select-group {
    position: relative;
}

/* Custom Select Container */
.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Custom Select Styled Trigger */
.select-selected {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    position: relative;
    width: 100%;
    font-size: 14px;
}

/* Style the arrow inside the select element */
.select-selected:after {
    position: absolute;
    content: "";
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Point the arrow upwards when the select box is open */
.select-selected.select-arrow-active:after {
    transform: translateY(-50%) rotate(-135deg);
}

/* Style the dropdown items */
.select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    margin-top: 5px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
}

/* When the select dropdown is open */
.select-items:not(.select-hide) {
    display: block;
}

/* Style each dropdown item */
.select-items div {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-items div:hover {
    background-color: #f8f8f8;
}

/* Add a background color when the option is selected */
.select-items div.same-as-selected {
    background-color: #f0f0f0;
    font-weight: 600;
    color: var(--primary-color, #2046a1);
}

.required {
    color: #ff4d4f;
}

.form-submit {
    margin-top: 30px;
}

.btn-submit {
    display: inline-block;
    background-color: #B89B33;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
    background-color: #9c8328;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .form-row.three-columns,
    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-title {
        font-size: 24px;
    }
}

.select-hide {
    display: none;
}

.form-control::placeholder {
    color: #999;
}

/* Add Inter font if needed */
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
    font-display: swap;
}

/* Submit button and loading state */
.submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background-color: var(--secondary-color, #B89B33);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    min-width: 180px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--secondary-hover-color, #9c8328);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submitting .button-text {
    opacity: 0.7;
}

.submitting .button-loader {
    display: inline-block;
}

/* Form responses */
.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}

.form-response.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.form-response.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* Success popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #333;
}

.popup-icon {
    margin-bottom: 20px;
}

.popup-button {
    background-color: var(--accent-color, #f5a623);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.popup-button:hover {
    background-color: var(--accent-hover-color, #e69516);
}

.custom-select.error .select-selected {
    border-color: #f44336;
}

.select-selected.error {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.05);
} 