/* ===================================
   CONTACT PAGE STYLES
   =================================== */

/* Toast Notification Styles */
.contact-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 400px;
    animation: slideInUp 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-toast.show {
    animation: slideInUp 0.4s ease-out;
}

.contact-toast.hide {
    animation: slideOutDown 0.4s ease-in forwards;
}

.contact-toast i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-toast-content {
    flex: 1;
}

.contact-toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.contact-toast-message {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
}

.contact-toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.contact-toast-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Page Header Styles */
.contact-page-header {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #c41230 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: -2rem -2rem 3rem -2rem;
    position: relative;
    overflow: hidden;
}

/* Background decoration pattern */
.contact-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
    pointer-events: none;
}

/* Bottom gradient border */
.contact-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

/* Header content wrapper */
.contact-page-header-content {
    position: relative;
    z-index: 1;
}

/* Main heading */
.contact-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

/* Subtitle */
.contact-page-header p {
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Quick Contact Buttons Container */
.contact-quick-access {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Contact method button styles */
.contact-method-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.contact-method-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-method-btn i {
    font-size: 1.2rem;
}

/* Updated timestamp */
.contact-page-header .last-updated {
    font-size: 0.85rem;
    margin-top: 1.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===================================
   CONTACT CONTENT STYLES
   =================================== */

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Info Section */
.contact-info-section {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-info-section h2 {
    font-size: 1.8rem;
    color: #dc143c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info-section > p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #dc143c;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15);
}

.method-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.method-details h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.method-details p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.95rem;
}

/* Social Links Section */
.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.social-links h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

/* Contact Form Section */
.contact-form-section {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-section h2 {
    font-size: 1.8rem;
    color: #dc143c;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
}

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

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   ADDITIONAL CONTENT SECTION
   =================================== */

.additional-contact-info {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #dc143c;
}

.additional-contact-info h2 {
    color: #dc143c;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.admin-content {
    color: #333;
    line-height: 1.8;
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    font-size: 1.8rem;
    color: #dc143c;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.quick-faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid #dc143c;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

.faq-item h3 {
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ Link */
.faq-link {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: white;
    color: #dc143c;
    border: 2px solid #dc143c;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #dc143c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes drift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(25px, 25px); }
    100% { transform: translate(0, 0); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-page-header h1 {
        font-size: 2rem;
    }

    .quick-faq {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-page-header {
        padding: 3rem 1.5rem;
        margin: -1.5rem -1.5rem 2rem -1.5rem;
    }

    .contact-page-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .contact-page-header p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-quick-access {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .contact-method-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem;
    }

    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-methods {
        gap: 1rem;
    }

    .contact-method {
        padding: 1rem;
        gap: 1rem;
    }

    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .method-details h3 {
        font-size: 1rem;
    }

    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .quick-faq {
        gap: 1.5rem;
    }

    .faq-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-page-header {
        padding: 2.5rem 1rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }

    .contact-page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0;
    }

    .contact-page-header p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .contact-quick-access {
        gap: 0.75rem;
        margin-top: 1.25rem;
        flex-direction: column;
    }

    .contact-method-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .quick-faq {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h3 {
        font-size: 0.95rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }

    .additional-contact-info {
        padding: 1.25rem;
        margin-top: 2rem;
    }

    /* Toast responsive */
    .contact-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
