/* ============================================
   CONTACT PAGE STYLES - RAMA ENTERPRISE
   ============================================ */

/* HERO SECTION */
.contact-hero {
    background: linear-gradient(135deg, 
                rgba(15, 15, 15, 0.95) 0%, 
                rgba(15, 15, 15, 0.85) 100%),
                url('../images/contact-bg.jpg') center/cover no-repeat;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, 
                rgba(255, 59, 48, 0.15) 0%, 
                transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-hero .subtitle {
    display: inline-block;
    color: #ff3b30;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.contact-hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    font-size: 18px;
    line-height: 1.6;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.badge i {
    color: #ff3b30;
}

.badge:hover {
    background: rgba(255, 59, 48, 0.15);
    transform: translateY(-2px);
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: #ff3b30;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
    padding: 120px 0;
    background: #0f0f0f;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 59, 48, 0.3) 50%, 
                transparent 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* CONTACT INFO CARD */
.contact-info-card {
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.08) 0%, 
                rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 59, 48, 0.3);
}

.contact-card-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card-subtitle {
    color: #b0b0b0;
    margin-bottom: 30px;
    font-size: 16px;
}

/* CONTACT ITEMS */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.35s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 59, 48, 0.1);
    transform: translateX(6px);
    border-color: rgba(255, 59, 48, 0.2);
}

.contact-icon {
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-content h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-content p {
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.contact-content a {
    color: #ff3b30;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-content a:hover {
    color: #ff6b61;
    gap: 8px;
}

/* SOCIAL BOX */
.social-box {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-box h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff3b30, #ff6b61);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}

/* CONTACT FORM */
.contact-form {
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.08) 0%, 
                rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
}

.form-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-subtitle {
    color: #b0b0b0;
    margin-bottom: 30px;
    font-size: 16px;
}

/* FORM STYLES */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
    font-size: 15px;
}

.form-group label i {
    color: #ff3b30;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

/* SELECT DROPDOWN */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
    cursor: pointer;
}

.form-group select option {
    background: #121212;
    color: #fff;
    padding: 12px;
}

/* TEXTAREA */
.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.char-count span {
    color: #fff;
    font-weight: 600;
}

/* FORM ERRORS */
.form-error {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    min-height: 18px;
}

/* FORM FOOTER */
.form-footer {
    margin-top: 30px;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #fff;
    font-size: 14px;
}

.form-note i {
    color: #ff3b30;
    flex-shrink: 0;
}

/* SUBMIT BUTTON */
.btn-primary {
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #ff3b30, #ff6b61);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 59, 48, 0.4);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 18px;
}

.btn-loader {
    display: none;
    position: relative;
    z-index: 1;
}

.btn-primary.loading .btn-text,
.btn-primary.loading .btn-icon {
    opacity: 0;
}

.btn-primary.loading .btn-loader {
    display: block;
}

/* MAP SECTION */
.map-section {
    padding: 100px 0;
    background: #0f0f0f;
    position: relative;
}

.map-container {
    position: relative;
}

.map-frame {
    position: relative;
    height: 500px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    margin-bottom: 30px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) brightness(0.65) contrast(1.2);
    transition: all 0.6s ease;
}

.map-frame:hover iframe {
    filter: grayscale(30%) brightness(0.9) contrast(1.05);
}

/* MAP OVERLAY */
.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px;
    pointer-events: none;
}

.map-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 16px;
    color: #fff;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-badge i {
    color: #ff3b30;
    font-size: 22px;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-content strong {
    font-size: 16px;
    font-weight: 600;
}

.badge-content span {
    font-size: 14px;
    color: #b0b0b0;
}

.map-actions {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.map-btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 35px;
    font-size: 16px;
}

/* LOCATION DETAILS */
.location-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .location-details {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.detail-card i {
    font-size: 32px;
    color: #ff3b30;
    margin-bottom: 15px;
}

.detail-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-card p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
}

/* FAQ SECTION */
.faq-section {
    padding: 100px 0;
    background: rgba(15, 15, 15, 0.8);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 59, 48, 0.3);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: #ff3b30;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 25px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

/* CTA SECTION */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, 
                rgba(15, 15, 15, 0.95) 0%, 
                rgba(15, 15, 15, 0.85) 100%),
                url('../images/cta-bg.jpg') center/cover no-repeat;
    text-align: center;
    position: relative;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, 
                rgba(255, 59, 48, 0.2) 0%, 
                transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    padding: 18px 24px;
    border-radius: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
    max-width: 400px;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.toast-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.toast-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toast-content strong {
    font-size: 16px;
    font-weight: 600;
}

.toast-content span {
    font-size: 14px;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
}

.toast-close:hover {
    opacity: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .contact-grid {
        gap: 40px;
    }
    
    .contact-hero h1 {
        font-size: 46px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .contact-hero {
        padding: 140px 0 80px;
    }
    
    .contact-hero h1 {
        font-size: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-card,
    .contact-form {
        padding: 35px;
    }
    
    .map-frame {
        height: 400px;
    }
    
    .contact-cta h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-info-card,
    .contact-form {
        padding: 30px;
        border-radius: 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .map-frame {
        height: 350px;
        border-radius: 20px;
    }
    
    .map-overlay {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .map-badge,
    .map-actions {
        width: 100%;
    }
    
    .map-actions {
        justify-content: center;
    }
    
    .faq-section,
    .contact-cta {
        padding: 80px 0;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 32px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info-card,
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        width: 56px;
        margin: 0 auto;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .map-frame {
        height: 300px;
        border-radius: 16px;
    }
    
    .map-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-grid > *,
.map-container,
.faq-grid,
.cta-content {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-form {
    animation-delay: 0.2s;
}

.contact-item {
    animation: slideInRight 0.6s ease forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

/* LOADING STATE */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .contact-item,
    .contact-info-card,
    .contact-form,
    .map-frame iframe,
    .btn-primary,
    .map-btn,
    .toast,
    .social-link,
    .badge,
    .detail-card,
    .faq-item {
        transition: none !important;
    }
    
    .contact-grid > *,
    .map-container,
    .faq-grid,
    .cta-content,
    .contact-item {
        animation: none !important;
    }
}

/* FOCUS STATES FOR ACCESSIBILITY */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.btn-primary:focus-visible,
.map-btn:focus-visible {
    outline: 2px solid #ff3b30;
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .contact-hero,
    .contact-section,
    .map-section,
    .faq-section,
    .contact-cta {
        padding: 40px 0 !important;
    }
    
    .contact-info-card,
    .contact-form,
    .map-frame {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .btn-primary,
    .map-btn,
    .social-links,
    .map-actions {
        display: none !important;
    }
    
    .contact-item {
        border: 1px solid #ddd !important;
    }
}