.ssl-contact-container {
    max-width: 700px;
    margin: 20px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ssl-form-modern .ssl-form-group {
    margin-bottom: 20px;
}

.ssl-form-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ssl-form-modern input[type="text"],
.ssl-form-modern input[type="email"],
.ssl-form-modern input[type="tel"],
.ssl-form-modern textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #444;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fdfdfd;
}

.ssl-form-modern input:focus,
.ssl-form-modern textarea:focus,
.ssl-form-modern select:focus {
    border-color: #2e9100; /* Fallback si no hay variable CSS */
    outline: none;
    background: #fff;
    /* La sombra interactiva se maneja vía línea en PHP para tomar el primary_color */
}

.ssl-form-modern select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #444;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fdfdfd;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.ssl-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ssl-form-row .ssl-form-group {
    flex: 1;
    min-width: 250px;
}

/* Location Fields Visibility Logic */
.ssl-location-fields {
    display: none !important; /* Oculto por defecto, !important previene conflictos de temas */
}

/* Cuando aplicamos la clase dinámica */
.ssl-form-row.ssl-location-fields.is-visible {
    display: flex !important;
}

.ssl-form-group.ssl-location-fields.is-visible {
    display: block !important;
}

.ssl-btn-primary {
    background: #2e9100;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.ssl-btn-primary:hover {
    background: #247500;
    transform: translateY(-2px);
}

.ssl-btn-primary:active {
    transform: translateY(0);
}

.ssl-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ssl-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ssl-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes ssl-spin {
    to { transform: rotate(360deg); }
}

.ssl-btn-primary.loading .btn-text {
    opacity: 0.8;
}

.ssl-btn-primary.loading .ssl-spinner {
    display: inline-block;
}

.ssl-response-msg {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.ssl-response-msg.success {
    background: #e6ffed;
    color: #1e4620;
    border: 1px solid #c6f6d5;
}

.ssl-response-msg.error {
    background: #fff5f5;
    color: #9b2c2c;
    border: 1px solid #fed7d7;
}

@media (max-width: 600px) {
    .ssl-form-row .ssl-form-group {
        min-width: 100%;
    }
}
