/* ========================================
   CONTACT PAGE - MODERN VIOLET THEME
======================================== */

/* ========================================
   HERO SECTION
======================================== */
.contact-hero-section {
    position: relative;
    padding: 8rem 1.5rem 6rem;
    background-image: url('/assets/img/contact.png');
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-hero-badge i {
    font-size: 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;

}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-title-accent {
    color: var(--violet-accent);
    display: inline-block;
}

.contact-hero-description {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   CONTACT FORM SECTION
======================================== */
.contact-form-section {
    padding: 6rem 1.5rem;
    background: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--hr-border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--violet-light);
}

.contact-info-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--violet-light) 0%, var(--violet-primary) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--violet-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: var(--violet-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 2px solid var(--hr-border);
    box-shadow: var(--shadow-lg);
}

.contact-form-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-required {
    color: #ef4444;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid color(srgb red green blue);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--foreground);
    background: var(--background);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--violet-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--violet-primary), var(--violet-dark));
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--violet-dark), var(--violet-darker));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-submit i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.form-submit:hover i {
    transform: translateX(4px);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* ========================================
   MAP SECTION
======================================== */
.map-section {
    padding: 6rem 1.5rem;
    background: var(--violet-lightest);
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.map-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 3rem;
    position: relative;
}


.map-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--violet-light) 0%, var(--violet-primary) 100%);
    border-radius: 9999px;
}

[data-theme="dark"] .map-title {
    color: white;
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--hr-border);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--violet-light);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* Map decorative elements */
.map-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--violet-light), var(--violet-primary), var(--violet-dark));
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-wrapper:hover::before {
    opacity: 0.3;
}

/* ========================================
   MESSAGES TABLE SECTION
======================================== */
.messages-section {
    padding: 6rem 1.5rem;
    background: var(--violet-lightest);
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.messages-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
}

.messages-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--violet-primary);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.table-wrapper {
    background: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--hr-border);
}

.table-responsive {
    overflow-x: auto;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
}

.messages-table thead {
    background: linear-gradient(135deg, var(--violet-primary), var(--violet-dark));
    color: white;
}

.messages-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.messages-table tbody tr {
    border-bottom: 1px solid var(--hr-border);
    transition: background 0.2s ease;
}

.messages-table tbody tr:hover {
    background: var(--violet-lightest);
}

.messages-table tbody tr:last-child {
    border-bottom: none;
}

.messages-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--foreground);
}

.message-name {
    font-weight: 600;
    color: var(--violet-primary);
}

.message-email {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.message-subject {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-content {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted-foreground);
}

.message-date {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.message-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.status-read {
    background: #d1fae5;
    color: #065f46;
}

.status-replied {
    background: #e0e7ff;
    color: #4338ca;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-view {
    background: #dbeafe;
    color: #1e40af;
}

.btn-view:hover {
    background: #1e40af;
    color: white;
    transform: scale(1.1);
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #991b1b;
    color: white;
    transform: scale(1.1);
}

.no-messages {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

.no-messages i {
    font-size: 4rem;
    color: var(--violet-primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-messages p {
    font-size: 1.125rem;
}

/* Table Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--hr-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-pagination {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 2px solid var(--hr-border);
    border-radius: 0.5rem;
    color: var(--foreground);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--violet-primary);
    color: white;
    border-color: var(--violet-primary);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-pagination.active {
    background: var(--violet-primary);
    color: white;
    border-color: var(--violet-primary);
}

/* ========================================
   SOCIAL LINKS SECTION
======================================== */
.social-section {
    padding: 4rem 1.5rem;
    background: var(--background);
    text-align: center;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--violet-light) 0%, var(--violet-primary) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }

    .contact-hero-description {
        font-size: 1.125rem;
    }

    .contact-hero-section {
        padding: 6rem 1rem 4rem;
    }

    .contact-form-section,
    .map-section,
    .messages-section,
    .social-section {
        padding: 4rem 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .map-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .map-wrapper iframe {
        height: 350px;
    }

    .messages-table th,
    .messages-table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }

    .message-subject,
    .message-content {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .messages-table {
        font-size: 0.8rem;
    }

    .messages-table th,
    .messages-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   DARK MODE
======================================== */


[data-theme="dark"] .map-section,
[data-theme="dark"] .messages-section {
    background: var(--violet-lightest);
}

[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .map-wrapper,
[data-theme="dark"] .table-wrapper {
    background: var(--card-bg);
    border-color: rgba(167, 139, 250, 0.2);
}

[data-theme="dark"] .messages-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
    background: var(--background);
    border-color: rgba(167, 139, 250, 0.2);
    color: var(--foreground);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info-card,
.contact-form-wrapper,
.map-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info-card:nth-child(3) {
    animation-delay: 0.3s;
}

.map-wrapper {
    animation-delay: 0.4s;
}

/* ========================================
   ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.form-submit:focus,
.btn-action:focus,
.btn-pagination:focus {
    outline: 3px solid var(--violet-accent);
    outline-offset: 2px;
}