/* ============================================
   PAGE-CONTACT.CSS - Página de Contato
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #bfdbfe;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-toggle-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.hero-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-toggle-btn.active {
    background: #ffffff;
    color: #1e40af;
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-toggle-btn[aria-pressed="true"] {
    background: #ffffff;
    color: #1e40af;
    border-color: #ffffff;
}

.hero-toggle-btn[aria-pressed="false"] {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Seção de Formulários */
.form-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

/* Container centralizado - 80% no desktop, 100% no mobile */
.form-section .container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 1024px) {
    .form-section .container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .form-section .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Título da seção */
.form-section .text-center {
    text-align: center;
    margin-bottom: 3rem;
}

.form-section .text-center .badge {
    display: inline-flex;
    align-items: center;
    background: #dbeafe;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-section .text-center h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.form-section .text-center p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Botões de Toggle */
.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.toggle-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.toggle-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.toggle-btn[aria-pressed="true"] {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.toggle-btn[aria-pressed="false"] {
    background: #ffffff;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Formulários */
.form-company,
.form-candidate {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Grid de 3 colunas para campos do formulário */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.form-grid-3 .form-group {
    margin-bottom: 0;
}

/* Grid de 2 colunas */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-grid-2 .form-group {
    margin-bottom: 0;
}

/* Campo full-width */
.form-full-width {
    grid-column: 1 / -1;
}

/* Responsive para grids */
@media (max-width: 768px) {
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

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

.form-company h3,
.form-candidate h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Labels */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-label .text-red-500 {
    color: #dc2626;
    display: inline;
    margin: 0;
}

/* Inputs */
.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:disabled,
.form-input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Textarea */
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Input pequeno (para campo "Outro") */
.form-input-small {
    display: inline-block;
    width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

.form-input-small:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Input de arquivo */
.form-input-file {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.form-input-file:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.form-input-file:focus {
    border-color: #2563eb;
    outline: none;
}

/* Grupo de Radio Buttons */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.form-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #4b5563;
    cursor: pointer;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}

.form-radio-group label:hover {
    background-color: #f3f4f6;
}

.form-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Mensagens de erro */
.text-red-500 {
    color: #dc2626;
    font-size: 0.8125rem;
    display: block;
    margin-top: 0.25rem;
}

/* Mensagem de sucesso */
.bg-green-50 {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Mensagem de erro do banco */
.bg-red-50 {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Botão de submit */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Esconder formulários */
.hidden {
    display: none !important;
}

/* Espaçamento entre campos */
.form-company > label,
.form-candidate > label {
    margin-top: 1.25rem;
}

.form-company > label:first-of-type,
.form-candidate > label:first-of-type {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .form-section {
        padding: 3rem 0;
    }
    
    .form-section .container {
        padding: 0 1rem;
    }
    
    .form-section .text-center h2 {
        font-size: 1.75rem;
    }
    
    .form-section .text-center p {
        font-size: 1rem;
    }
    
    .toggle-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .toggle-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .form-company,
    .form-candidate {
        padding: 1.5rem;
    }
    
    .form-company h3,
    .form-candidate h3 {
        font-size: 1.25rem;
    }
    
    .form-input-small {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .form-radio-group label {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 2rem 0;
    }
    
    .form-company,
    .form-candidate {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .form-section .text-center .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .form-section .text-center h2 {
        font-size: 1.5rem;
    }
}