/* Frontend Form Styles */
.wpcf-frontend-form {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpcf-form {
    padding: 0;
}

.wpcf-form-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.wpcf-form-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

/* Form Fields - 12 Column Grid System */
.wpcf-form-fields {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: start;
}

/* Field Wrapper with Column Classes */
.wpcf-field-wrapper {
    margin-bottom: 0;
}

.wpcf-field-wrapper.wpcf-col-1 { grid-column: span 1; }
.wpcf-field-wrapper.wpcf-col-2 { grid-column: span 2; }
.wpcf-field-wrapper.wpcf-col-3 { grid-column: span 3; }
.wpcf-field-wrapper.wpcf-col-4 { grid-column: span 4; }
.wpcf-field-wrapper.wpcf-col-5 { grid-column: span 5; }
.wpcf-field-wrapper.wpcf-col-6 { grid-column: span 6; }
.wpcf-field-wrapper.wpcf-col-7 { grid-column: span 7; }
.wpcf-field-wrapper.wpcf-col-8 { grid-column: span 8; }
.wpcf-field-wrapper.wpcf-col-9 { grid-column: span 9; }
.wpcf-field-wrapper.wpcf-col-10 { grid-column: span 10; }
.wpcf-field-wrapper.wpcf-col-11 { grid-column: span 11; }
.wpcf-field-wrapper.wpcf-col-12 { grid-column: span 12; }

/* New Row - Force field to start on new row */
.wpcf-field-wrapper.new-row {
    grid-column: 1 / -1;
}

/* Field Content */
.wpcf-field-content {
    width: 100%;
}

.wpcf-field-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.wpcf-field-content label .required {
    color: #dc3545;
    margin-left: 2px;
}

/* Form Controls */
.wpcf-field-content input[type="text"],
.wpcf-field-content input[type="email"],
.wpcf-field-content input[type="tel"],
.wpcf-field-content input[type="number"],
.wpcf-field-content input[type="url"],
.wpcf-field-content input[type="password"],
.wpcf-field-content input[type="file"],
.wpcf-field-content select,
.wpcf-field-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wpcf-field-content input:focus,
.wpcf-field-content select:focus,
.wpcf-field-content textarea:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

.wpcf-field-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio and Checkbox Groups */
.wpcf-radio-group,
.wpcf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpcf-radio-option,
.wpcf-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.wpcf-radio-option input[type="radio"],
.wpcf-checkbox-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: 8px;
}

.wpcf-radio-option span,
.wpcf-checkbox-option span {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

/* Field Description */
.field-description {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Form Footer */
.wpcf-form-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.wpcf-submit-button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.wpcf-submit-button:hover {
    background: #005a87;
}

.wpcf-submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Form Messages */
.wpcf-form-messages {
    padding: 20px 30px;
}

.wpcf-success-message {
    background: #d1edff;
    color: #0c5460;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #bee5eb;
    font-size: 14px;
}

.wpcf-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #f5c6cb;
    font-size: 14px;
}

/* Loading State */
.wpcf-frontend-form.loading {
    position: relative;
    pointer-events: none;
}

.wpcf-frontend-form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpcf-frontend-form {
        margin: 10px;
        border-radius: 4px;
    }
    
    .wpcf-form-header,
    .wpcf-form-fields,
    .wpcf-form-footer {
        padding: 20px;
    }
    
    .wpcf-form-fields {
        gap: 15px;
    }
    
    /* On mobile, make most fields full width */
    .wpcf-field-wrapper.wpcf-col-1,
    .wpcf-field-wrapper.wpcf-col-2,
    .wpcf-field-wrapper.wpcf-col-3,
    .wpcf-field-wrapper.wpcf-col-4,
    .wpcf-field-wrapper.wpcf-col-5,
    .wpcf-field-wrapper.wpcf-col-6 {
        grid-column: span 12;
    }
    
    .wpcf-form-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wpcf-form-header,
    .wpcf-form-fields,
    .wpcf-form-footer {
        padding: 15px;
    }
    
    .wpcf-field-content input,
    .wpcf-field-content select,
    .wpcf-field-content textarea {
        padding: 10px 12px;
    }
    
    .wpcf-submit-button {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Advanced Field Styles */
.wpcf-name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wpcf-address-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf-address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .wpcf-name-fields {
        grid-template-columns: 1fr;
    }
    
    .wpcf-address-row {
        grid-template-columns: 1fr;
    }
}

/* File Upload Styling */
.wpcf-field-content input[type="file"] {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px dashed #ced4da;
}

.wpcf-field-content input[type="file"]:focus {
    border-color: #007cba;
    border-style: solid;
}

/* Validation Styles */
.wpcf-field-content input:invalid,
.wpcf-field-content select:invalid,
.wpcf-field-content textarea:invalid {
    border-color: #dc3545;
}

.wpcf-field-content input:invalid:focus,
.wpcf-field-content select:invalid:focus,
.wpcf-field-content textarea:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Form Animation */
.wpcf-frontend-form {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.wpcf-payment-field {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.wpcf-payment-amount {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.currency-symbol {
    font-size: 24px;
    margin-right: 10px;
    font-weight: bold;
}

.wpcf-payment-amount input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.payment-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}



/* Contact number field styling */
.wpcf-contact-no-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wpcf-contact-no-field .wpcf-country-code {
    flex: 0 0 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpcf-contact-no-field input[type="tel"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Address field styling */
.wpcf-address-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpcf-address-row {
    display: flex;
    gap: 10px;
}

.wpcf-address-row input,
.wpcf-address-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Date field styling */
input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpcf-contact-no-field {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpcf-address-row {
        flex-direction: column;
    }
    
    .wpcf-contact-no-field .wpcf-country-code {
        flex: 1;
    }
}