/* ========================================
   PÁGINA DE CONTATO - IA FUNDO
   Design Moderno e Responsivo
   ======================================== */

/* Container Principal */
.contact-page {
    min-height: 100vh;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #1f2937;
}

[data-theme="dark"] .contact-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    color: #e5e5e5;
}

.contact-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 56px;
    animation: fadeInDown 0.6s ease;
}

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

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
}

.page-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

[data-theme="dark"] .page-header p {
    color: #9ca3af;
}

/* Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Formulário */
.contact-form-wrapper {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeInLeft 0.7s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

[data-theme="dark"] .contact-form-wrapper {
    background: #1a1a1a;
    border-color: #2a2a2a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-form-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Header do Form */
.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.form-header i {
    font-size: 32px;
}

.form-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #667eea;
    font-size: 18px;
}

[data-theme="dark"] .form-group label {
    color: #e5e5e5;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #0a0a0a;
    border-color: #2a2a2a;
    color: #e5e5e5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.char-counter {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
    margin-top: -6px;
    font-weight: 500;
}

[data-theme="dark"] .char-counter {
    color: #6b7280;
}

/* Botão Submit */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* Alertas */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    animation: slideIn 0.4s ease;
}

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

.alert i {
    font-size: 22px;
    flex-shrink: 0;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

[data-theme="dark"] .alert-success {
    background-color: #064e3b;
    color: #a7f3d0;
    border-color: #059669;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

[data-theme="dark"] .alert-error {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #dc2626;
}

/* Sidebar de Informações */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInRight 0.7s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleY(1);
}

[data-theme="dark"] .info-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

[data-theme="dark"] .info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.info-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-content {
    flex: 1;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
}

[data-theme="dark"] .info-card h3 {
    color: #e5e5e5;
}

.info-card p {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 4px 0;
    line-height: 1.6;
}

[data-theme="dark"] .info-card p {
    color: #d1d5db;
}

.info-card small {
    font-size: 13px;
    color: #9ca3af;
}

[data-theme="dark"] .info-card small {
    color: #6b7280;
}

/* Card Destacado */
.info-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #667eea;
    border-width: 2px;
}

[data-theme="dark"] .info-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #764ba2;
}

.info-card.highlight .info-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.info-card.highlight h3 {
    color: #667eea;
}

.info-card.highlight strong {
    color: #764ba2;
    font-weight: 700;
}

[data-theme="dark"] .info-card.highlight strong {
    color: #a78bfa;
}

/* Card Social */
.info-card.social {
    display: block;
    text-align: center;
}

.info-card.social .info-content h3 {
    margin-bottom: 8px;
}

.info-card.social .info-content p {
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.social-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-btn:hover::after {
    border-color: currentColor;
    transform: scale(1.2);
    opacity: 0;
}

.social-btn.twitter { background: #1da1f2; }
.social-btn.discord { background: #5865f2; }
.social-btn.twitch { background: #9146ff; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: white;
    margin-top: 24px;
    font-size: 17px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsividade */
@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .contact-form-wrapper {
        border-radius: 20px;
    }
    
    .form-header {
        padding: 24px 28px;
    }
    
    .form-header i {
        font-size: 28px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 24px;
    }
    
    .info-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.85rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .form-header {
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form {
        padding: 24px;
        gap: 20px;
    }
    
    .btn-submit {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}
