/* Fidamy Template Styles */
.fidamy-template {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.fidamy-hero {
    background: transparent;
    color: white;
    position: relative;
    overflow: visible;
    min-height: 580px;
    display: flex;
    justify-content: center;
}

.fidamy-hero::after {
    content: none;
}


/* Bootstrap grid overrides */
.fidamy-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1190px;
    background: linear-gradient(135deg, #000000 0%, #4F5865 66%, #000000 100%);
    padding-left: 15px;
    padding-right: 15px;
}

.fidamy-hero .row {
    min-height: 550px;
    margin: 0;
}

.fidamy-hero .row [class*="col-"] {
    padding-bottom: 0;
}

.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 550px;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.phone-img {
    width: 100%;
    align-items: initial;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-phone:hover .phone-img {
    /* Hover effect disabled */
}

.price-tag-img {
    position: absolute;
    left: 50%;
    top: 82%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 270px;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
    animation: floatTag 3.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes floatTag {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) translateY(0px); }
    50% { transform: translate(-50%, -50%) rotate(0deg) translateY(-6px); }
}

.hero-text {
    padding: 30px 0 30px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.title-line:first-child {
    color: #FFFFFF;
    font-weight: 900;
}

.title-line:last-child {
    color: #FF6634;
    text-shadow: 0 4px 12px rgba(255, 102, 52, 0.4);
    font-weight: 900;
}

.hero-description {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.92;
    max-width: 100%;
    font-weight: 400;
    color: #E8E8E8;
}

.btn-view-details {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 11px 24px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 12px;
    background: transparent;
    align-self: flex-start;
}

.btn-view-details:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.15);
}

.hero-details {
    margin-bottom: 32px;
}

.details-title {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #FF6634;
    text-transform: none;
    letter-spacing: 0;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.details-list li {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #E8E8E8;
}

.checkmark {
    background: white;
    color: #1A1A1A;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.btn-get-insurance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6634 0%, #FF7845 100%);
    color: white;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 28px rgba(255, 102, 52, 0.45);
    border: none;
    align-self: flex-start;
}

.btn-get-insurance::before {
    content: '→';
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.btn-get-insurance:hover {
    background: linear-gradient(135deg, #FF7845 0%, #FF6634 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(255, 102, 52, 0.55);
}

/* Content Section */
.fidamy-content {
    padding: 17px 0;
}

/* Content section Bootstrap overrides */
.fidamy-content .container {
    max-width: 1190px;
}

.qr-column {
    background: white;
    padding: 45px 38px;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.faq-title {
    color: #FF6634;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.8px;
}

.faq-section-title {
    color: #1A1A1A;
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 16px 0;
    padding: 0;
}

.faq-section-title:first-of-type {
    margin-top: 12px;
}

.faq-accordion {
    margin-bottom: 22px;
}

.faq-item {
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.faq-item:hover:not(.expanded) {
    border-color: #FF6634;
    box-shadow: 0 3px 10px rgba(255, 102, 52, 0.1);
}

.faq-item.expanded {
    border-color: #E5E5E5;
}

.faq-question {
    padding: 18px 22px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    user-select: none;
    color: #1A1A1A;
}

.faq-arrow {
    background: #D0D0D0;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 14px;
}

.faq-item.expanded .faq-arrow {
    transform: rotate(90deg);
    background: #FF6634;
}

.faq-answer {
    padding: 0 22px 18px;
    display: none;
    color: #666;
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
    font-size: 14px;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-item.expanded .faq-answer {
    display: block;
}

.faq-answer a {
    color: #FF6634;
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.qr-title {
    color: #FF6634;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.8px;
}

.qr-card {
    text-align: center;
}

.qr-text {
    font-size: 17px;
    margin-bottom: 22px;
    color: #1A1A1A;
    font-weight: 600;
}

.btn-scan {
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-scan::before {
    content: '📱';
    font-size: 16px;
}

.btn-scan:hover {
    background: #2A2A2A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.qr-code {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E5E5;
    padding: 18px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 52px;
    }
    
    .phone-img {
        max-width: 480px;
    }
    
    .price-tag-img {
        width: 240px;
    }
    
    .hero-text {
        padding: 25px 0 25px 28px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .phone-img {
        max-width: 420px;
    }
    
    .price-tag-img {
        width: 220px;
    }
    
    .details-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fidamy-hero {
        padding: 50px 0 0 0;
        min-height: auto;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 35px;
        padding: 20px;
    }
    
    .hero-phone {
        min-height: auto;
        justify-content: center;
    }
    
    .fidamy-hero .row [class*="col-"] {
        padding-bottom: 0;
    }
    
    .hero-title {
        font-size: 42px;
        letter-spacing: -1.5px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    .details-list {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .phone-img {
        width: 100%;
        max-width: 340px;
        transform: none;
    }
    
    .price-tag-img {
        width: 170px;
    }
    
    .qr-column {
        margin-bottom: 28px;
        padding: 32px 22px;
    }
    
    .btn-view-details,
    .btn-get-insurance {
        align-self: center;
    }
    
    .hero-details {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1.2px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .phone-img {
        max-width: 300px;
    }
    
    .price-tag-img {
        width: 150px;
    }
    
    .faq-title, .qr-title {
        font-size: 28px;
    }
    
    .faq-section-title {
        font-size: 18px;
    }
    
    .btn-get-insurance {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .qr-code {
        width: 220px;
        height: 220px;
    }
}

/* Animation for page load */
.fidamy-template {
    animation: pageLoad 0.5s ease;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn-view-details:focus,
.btn-get-insurance:focus,
.btn-scan:focus {
    outline: 3px solid #FF6634;
    outline-offset: 3px;
}

/* Focus visible for keyboard navigation only */
.faq-question:focus {
    outline: none;
}

.faq-question:focus-visible {
    outline: 3px solid #FF6634;
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .fidamy-hero {
        background: white !important;
        color: black !important;
    }
    
    .btn-view-details,
    .btn-get-insurance,
    .btn-scan {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}
