/**
 * Lead Form Styles for Keiste Solar Report
 */

.ksrad-lead-form {
    width: 100%;
}

.ksrad-form-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.ksrad-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ksrad-form-group input[type="text"],
.ksrad-form-group input[type="email"],
.ksrad-form-group input[type="tel"],
.ksrad-form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.ksrad-form-group input:focus,
.ksrad-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.ksrad-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #d63638;
    font-weight: bold;
}

.ksrad-form-consent {
    margin: 20px 0;
}

.ksrad-form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
}

.ksrad-form-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.ksrad-submit-btn {
    margin-top: 10px;
}

.ksrad-form-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 500;
}

.ksrad-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ksrad-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ksrad-lead-form input:disabled,
.ksrad-lead-form textarea:disabled,
.ksrad-lead-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ksrad-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Enhanced Modal Styles */
.roi-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E8E8E6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.roi-input:focus {
    outline: none;
    border-color: #5CB8B2;
    box-shadow: 0 0 0 3px rgba(92, 184, 178, 0.1);
}

/* Phone Input with Country Code */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.phone-country-select {
    width: 110px;
    padding: 0.75rem 0.5rem;
    border: 1px solid #E8E8E6;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.phone-input {
    flex: 1;
}

/* Checkbox Groups */
.roi-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
}

.roi-checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.roi-checkbox-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3A3A38;
    cursor: pointer;
}

/* Improved Select Styles */
select.roi-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233A3A38' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Required field indicator */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Modal responsiveness */
@media (max-width: 600px) {
    .phone-input-wrapper {
        flex-direction: column;
    }
    
    .phone-country-select {
        width: 100%;
    }
}
