/* public/css/contact.css - Responsive Contact Page */

/* CSS Variables */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #198754;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --bg-light: #f8f9fa;
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
}

/* Header Icon */
.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.header-icon i {
    color: white;
    font-size: 2rem;
}

/* Contact Items */
.contact-item {
    transition: var(--transition);
    padding: 8px;
    border-radius: 12px;
}

.contact-item:hover {
    background-color: var(--bg-light);
    transform: translateX(5px);
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e7f1ff;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-item:hover .contact-icon-box {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* WhatsApp specific */
.whatsapp-bg {
    background: #e8f5e9;
    color: var(--whatsapp);
}

.contact-item:hover .whatsapp-bg {
    background: var(--whatsapp);
    color: white;
}

/* Time specific */
.time-bg {
    background: #fff3cd;
    color: #856404;
}

.contact-item:hover .time-bg {
    background: #856404;
    color: white;
}

/* Text truncation */
.email-text, .phone-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.min-width-0 {
    min-width: 0;
}

/* Info Note */
.info-note {
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.info-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Form Floating Labels */
.form-floating > label {
    font-size: 0.85rem;
    padding: 1rem 0.75rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating textarea.form-control {
    height: 150px;
}

/* Form Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.3);
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Social Links */
.social-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-3px) rotate(8deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.2);
}

/* Toast Notifications */
.toast-container {
    z-index: 1050;
}

.toast {
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Responsive Breakpoints */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .container {
        padding-top: 1rem !important;
    }

    h1.display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon i {
        font-size: 1.5rem;
    }

    .contact-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .email-text, .phone-text {
        max-width: 150px;
    }

    .form-floating > label {
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 0.75rem !important;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1.display-5 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 0.9rem;
    }

    .card {
        padding: 1rem !important;
    }

    h4.fw-bold {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .contact-icon-box {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .email-text, .phone-text {
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
    }

    .form-floating {
        margin-bottom: 0.5rem;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        font-size: 0.9rem;
    }

    .form-floating > label {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    .form-floating textarea.form-control {
        height: 120px;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem !important;
    }

    .info-note p {
        font-size: 0.75rem;
    }

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

/* Small Mobile (375px and below) */
@media (max-width: 375px) {
    h1.display-5 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.85rem;
    }

    .card {
        padding: 0.75rem !important;
    }

    .contact-icon-box {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    h6.fw-bold {
        font-size: 0.85rem;
    }

    .text-primary.small {
        font-size: 0.75rem !important;
    }

    .badge {
        font-size: 0.55rem;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }

    .form-floating > label {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .btn-primary {
        font-size: 0.8rem;
    }

    .toast {
        font-size: 0.8rem;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .row.g-3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .contact-item {
        flex-direction: row;
    }

    .contact-icon-box {
        margin-right: 10px !important;
        margin-bottom: 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .contact-item:hover {
        transform: none;
        background: transparent;
    }

    .contact-item:hover .contact-icon-box {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

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

.spinner-border {
    animation: spin 1s linear infinite;
}

/* Print Styles */
@media print {
    .btn-primary,
    .social-link,
    .toast-container {
        display: none;
    }
}