/* Contact Form Styles - DCA Web Studio */

/* Contenedor principal del formulario */
.contact-form-container {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8941f);
}

/* Encabezado del formulario */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #aaa;
    transition: all 0.3s ease;
}

.step.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #0d0d0d;
    transform: scale(1.1);
}

.form-header h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #aaa;
    font-size: 1rem;
}

/* Pasos del formulario */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step h4 {
    color: #d4af37;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
}

.form-step h4 i {
    font-size: 1.1rem;
}

/* Grid para campos */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Campos del formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group small {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Checkbox */
.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    accent-color: #d4af37;
}

.form-group.checkbox label {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Errores de validación */
.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ff6b6b;
}

/* Resumen de confirmación */
.confirmation-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #d4af37;
}

.summary-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-item strong {
    color: #d4af37;
    display: inline-block;
    min-width: 120px;
}

.summary-item span {
    color: #fff;
}

/* Navegación entre pasos */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-next {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #0d0d0d;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

/* Mensajes del formulario */
.form-messages {
    margin-top: 1.5rem;
    min-height: 60px;
}

.message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.message.info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

/* Badges de confianza */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.trust-item i {
    color: #d4af37;
    font-size: 1rem;
}

/* Información de contacto alternativo */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-subtitle {
    color: #aaa;
    margin-bottom: 1.5rem;
}

/* Métodos de contacto */
.contact-method {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.method-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-method.whatsapp .method-icon {
    color: #25D366;
}

.contact-method.email .method-icon {
    color: #d4af37;
}

.contact-method.phone .method-icon {
    color: #3498db;
}

.method-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.method-content p {
    color: #aaa;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Botones de contacto */
.btn-whatsapp,
.btn-email,
.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-email {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-email:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.btn-phone {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.btn-phone:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

/* Información telefónica */
.phone-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.phone-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.phone-info i {
    color: #d4af37;
}

/* FAQ de contacto */
.faq-contact {
    margin-top: 1rem;
}

.faq-contact h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.faq-item {
    margin-bottom: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    color: #d4af37;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    padding: 1rem 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Modal de confirmación */
#confirmation-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
}

.modal-success h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-message {
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-details p {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1rem;
}

.confirmation-details ol {
    color: #ccc;
    padding-left: 1.5rem;
    margin: 0;
}

.confirmation-details li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.confirmation-details li:last-child {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.25rem;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Estilos específicos para elementos select */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

/* Estilos para las opciones del select */
.form-group select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.form-group select option:checked {
    background-color: #d4af37;
    color: #0d0d0d;
}

.form-group select option:hover {
    background-color: #333;
}

/* Estilos para cuando el select está enfocado */
.form-group select:focus option {
    background-color: #222;
}

/* Para navegadores WebKit (Chrome, Safari) */
.form-group select::-webkit-scrollbar {
    width: 8px;
}

.form-group select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* Para Firefox */
.form-group select {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(255, 255, 255, 0.05);
}

/* Campos del formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group small {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Mejoras para el modal de confirmación */
#confirmation-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.modal-success h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-message {
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-details p {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1rem;
}

.confirmation-details ol {
    color: #ccc;
    padding-left: 1.5rem;
    margin: 0;
}

.confirmation-details li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.confirmation-details li:last-child {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Estilos para el estado de envío */
.email-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.email-status.sent {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.email-status.saved {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.email-status.failed {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}