/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: var(--space-xl) 0;
    background-color: #0e1216; /* FORM - Dark Mode */
}

[data-theme="light"] .contact {
    background-color: #6c92bd; /* FORM - Light Mode */
}

.contact__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact__info {
    position: relative;
    z-index: 1;
}

.contact__subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
    font-family: 'DM Serif Display', serif;
    position: relative;
    padding-left: 1.5rem;
    max-width: 600px;
}

.contact__subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.contact__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.0625rem;
}

.contact__feature-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--secondary); /* Check em laranja */
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__decoration {
    position: relative;
    height: 250px;
    margin-top: -3rem;
    z-index: 0;
    pointer-events: none;
}

.contact__deco-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: url('../img/adesivo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    top: 10rem;
    left: 8rem;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Form */
.contact__form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row--3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #ffffff;
    border: 1px solid #d0d8e0;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #2a363d;
    border-color: #3d4f5a;
    color: #e8eef3;
}

.form-message {
    margin-top: var(--space-md);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    display: block;
}

/* File Input */
.form-file-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.form-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.form-file-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.form-file-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.form-file-button svg {
    flex-shrink: 0;
}

.form-file-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-file-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
}

.form-file-item-name {
    flex: 1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-file-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.form-file-item-remove:hover {
    color: #c0392b;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Indicador de loading do CEP */
.zipcode-loading {
    color: #416b99;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Desabilitar campos durante busca */
input:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* Container do botão de download do PDF */
.form-download-container {
    margin-top: var(--space-md);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão de download do PDF */
.btn--pdf-download {
    background: linear-gradient(135deg, #416b99 0%, #2c4a6e 100%);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(65, 107, 153, 0.3);
}

.btn--pdf-download:hover {
    background: linear-gradient(135deg, #2c4a6e 0%, #1a3a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(65, 107, 153, 0.4);
}

.btn--pdf-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(65, 107, 153, 0.3);
}

.btn--pdf-download svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* File Upload - Botão estilizado como os outros botões */
.form-upload-input {
    display: none;
}

.form-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.form-upload-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-upload-button-text {
    font-weight: 600;
}

.form-upload-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-upload-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-upload-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.form-upload-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(65, 107, 153, 0.1);
}

.form-upload-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.form-upload-item-icon--pdf {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.form-upload-item-icon--image {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.form-upload-item-icon svg {
    width: 20px;
    height: 20px;
}

.form-upload-item-info {
    flex: 1;
    min-width: 0;
}

.form-upload-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.form-upload-item-size {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-upload-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.form-upload-item-remove:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.form-upload-item-remove svg {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .form-upload-button {
    background: #2a363d;
    border-color: #3d4f5a;
}

[data-theme="dark"] .form-upload-item {
    background: #2a363d;
    border-color: #3d4f5a;
}

/* WhatsApp Button */
.btn--whatsapp {
    background: #128C7E;
    color: #ffffff;
    border: 2px solid #128C7E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    width: auto;
    position: relative;
    z-index: 100;
    text-decoration: none;
    cursor: pointer;
}

/* Esconde o botão WhatsApp mobile por padrão (desktop) */
.btn--whatsapp-mobile {
    display: none;
}

.btn--whatsapp:hover {
    background: #0F6B5F;
    border-color: #0F6B5F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 107, 95, 0.3);
}

.btn--whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--secondary {
    background: #128C7E;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn--secondary:hover {
    background: #0F6B5F;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

@media (max-width: 1023px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .contact__decoration {
        display: none;
    }
    
    /* Esconde o botão WhatsApp em contact__info no mobile */
    .contact__info .btn--whatsapp {
        display: none;
    }
    
    /* Mostra o botão WhatsApp no form-actions apenas no mobile */
    .btn--whatsapp-mobile {
        display: flex !important;
    }
    
    .form-row--2,
    .form-row--3 {
        grid-template-columns: 1fr;
    }
}
