/**
 * ATG Components CSS
 * Styles for Action Tour Guide components
 */

/* ATG Header Styles */
.atg-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ensure text visibility in all ATG components */
.atg-header,
.atg-header *,
.atg-footer,
.atg-footer *,
.atg-hero,
.atg-tours-grid,
.atg-tours-grid *,
.atg-contact-form,
.atg-contact-form * {
    color: #333333 !important;
}

/* Override for elements that should be white text */
.atg-hero h1,
.atg-hero p,
.atg-hero .atg-feature span,
.atg-btn-primary,
.atg-btn-primary *,
.atg-btn-solid,
.atg-btn-solid *,
.atg-tour-btn,
.atg-tour-btn * {
    color: #ffffff !important;
}

.atg-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.atg-brand img {
    max-height: 50px;
    width: auto;
}

.atg-logo-fallback {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.atg-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.atg-nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.atg-nav-menu a:hover {
    color: #007cba;
}

.atg-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.atg-btn-outline {
    border: 2px solid #007cba;
    color: #007cba;
    background: transparent;
}

.atg-btn-outline:hover {
    background: #007cba;
    color: white;
}

/* ATG Hero Section Styles */
.atg-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.atg-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.atg-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.atg-btn-primary {
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
}

.atg-btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ATG Tours Grid Styles */
.atg-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.atg-tour-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atg-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.atg-tour-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.atg-tour-content {
    padding: 1.5rem;
}

.atg-tour-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.atg-tour-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.atg-tour-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1rem;
}

.atg-tour-btn {
    background: #007cba;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.atg-tour-btn:hover {
    background: #005a87;
}

/* ATG Contact Form Styles */
.atg-contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.atg-form-group {
    margin-bottom: 1.5rem;
}

.atg-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.atg-form-group input,
.atg-form-group textarea,
.atg-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.atg-form-group input:focus,
.atg-form-group textarea:focus,
.atg-form-group select:focus {
    outline: none;
    border-color: #007cba;
}

.atg-form-group.error input,
.atg-form-group.error textarea,
.atg-form-group.error select {
    border-color: #dc3545;
}

.atg-field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.atg-submit-btn {
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.atg-submit-btn:hover {
    background: #218838;
}

.atg-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ATG Footer Styles */
.atg-footer {
    background: #333;
    color: white;
    padding: 3rem 2rem 1rem;
}

.atg-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.atg-footer-section h3 {
    margin-bottom: 1rem;
    color: #007cba;
}

.atg-footer-section ul {
    list-style: none;
    padding: 0;
}

.atg-footer-section ul li {
    margin-bottom: 0.5rem;
}

.atg-footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.atg-footer-section ul li a:hover {
    color: #007cba;
}

.atg-footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .atg-nav-wrap {
        flex-direction: column;
        gap: 1rem;
    }
    
    .atg-nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .atg-hero-content h1 {
        font-size: 2rem;
    }
    
    .atg-tours-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .atg-contact-form {
        margin: 1rem;
        padding: 1rem;
    }
}

/* ATG Feature Cards - Problem/Solution Style */
.atg-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    padding: 0 20px;
}

.atg-feature-card {
    background: linear-gradient(135deg, #4A90A4 0%, #5BA0B5 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    text-align: left;
    box-shadow: 0 10px 30px rgba(74, 144, 164, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.atg-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atg-feature-card:hover::before {
    opacity: 1;
}

.atg-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 144, 164, 0.4);
}

.atg-feature-card-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.atg-feature-card-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.atg-feature-card-icon i {
    font-size: 24px;
    color: #FFD700;
    width: 32px;
    text-align: center;
}

.atg-feature-card h3,
.atg-feature-card h4 {
    color: white !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.atg-feature-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Specific color variations for different problem types */
.atg-feature-card.wait-times {
    background: linear-gradient(135deg, #E74C3C 0%, #F1556C 100%);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.atg-feature-card.wait-times:hover {
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.4);
}

.atg-feature-card.endless-calls {
    background: linear-gradient(135deg, #3498DB 0%, #5DADE2 100%);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.atg-feature-card.endless-calls:hover {
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.4);
}

.atg-feature-card.denials {
    background: linear-gradient(135deg, #9B59B6 0%, #BB8FCE 100%);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.3);
}

.atg-feature-card.denials:hover {
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.4);
}

.atg-feature-card.unexpected-fees {
    background: linear-gradient(135deg, #F39C12 0%, #F7DC6F 100%);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.atg-feature-card.unexpected-fees:hover {
    box-shadow: 0 20px 40px rgba(243, 156, 18, 0.4);
}

/* Responsive design for feature cards */
@media (max-width: 768px) {
    .atg-feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .atg-feature-card {
        padding: 24px;
    }
    
    .atg-feature-card-icon img {
        width: 50px;
        height: 50px;
    }
    
    .atg-feature-card h3,
    .atg-feature-card h4 {
        font-size: 18px;
    }
    
    .atg-feature-card p {
        font-size: 14px;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-md-inline-block {
    display: inline-block !important;
}

@media (max-width: 768px) {
    .d-md-inline-block {
        display: none !important;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Messages */
.atg-message {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.atg-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.atg-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.atg-message.info {
    background: #cce6f7;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* FontAwesome Brand Icons - Ensure proper loading */
.fab.fa-tripadvisor {
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", "Font Awesome 6 Free";
    color: #00AF87 !important;
    font-size: 1.1em;
}

/* TripAdvisor icon with emoji fallback */
.tripadvisor-icon {
    position: relative;
    display: inline-block;
    font-style: normal !important;
}

/* If FontAwesome doesn't load, show emoji */
.tripadvisor-icon:before {
    content: "\f262"; /* TripAdvisor Unicode */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands";
}

/* If FA fails completely, no fallback emoji will show - only FontAwesome icon */
.tripadvisor-icon:empty:after {
    content: "";
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1em;
    color: #00AF87 !important;
}

/* Radio option icons styling */
.radio-option .fab,
.radio-option .fas {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    display: inline-block;
}
