/*
  Singatalent — singatalent.com
  Custom styles for recruitment sections only.
  Base template CSS stays in templatemo-sleeky-pro.css.
*/

/* ─── Logo Image Support ─── */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}
.logo-img:hover { opacity: 0.85; }

/* ─── Apply Now Nav Button ─── */
.nav-link.nav-apply {
    background: linear-gradient(135deg, #FF6B6B, #7FFFD4) !important;
    color: white !important;
    font-weight: 700 !important;
}
.nav-link.nav-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
    background: linear-gradient(135deg, #e85555, #5fe0b8) !important;
}

/* ─── FAQ Section ─── */
.faq {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="faq-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23FF6B6B" opacity="0.04"/><circle cx="80" cy="80" r="1" fill="%237FFFD4" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23faq-grain)"/></svg>');
    opacity: 0.4;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.25);
}

.faq-btn {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.3s ease;
}

.faq-btn:hover { color: #FF6B6B; }
.faq-btn.active { color: #FF6B6B; }

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: #FF6B6B;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.faq-btn.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 28px;
}

.faq-answer.open {
    max-height: 250px;
    padding: 0 28px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
}

/* ─── Testimonials Section ─── */
.testimonials {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(127, 255, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
}

.testimonials .section-title {
    background: linear-gradient(135deg, #7FFFD4, #FFAB91, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials .section-subtitle { color: #94a3b8; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(127, 255, 212, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(127, 255, 212, 0.2);
    border-radius: 20px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 255, 212, 0.08), transparent);
    transition: left 0.8s ease;
}

.testimonial-card:hover::before { left: 100%; }

.testimonial-card:hover {
    border-color: rgba(127, 255, 212, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(127, 255, 212, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.star { color: #FFAB91; font-size: 1.1rem; }

.testimonial-text {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.8;
    font-style: italic;
    flex: 1;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid rgba(127, 255, 212, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 13px;
    color: #7FFFD4;
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── Jobs Section (hero override) ─── */
.jobs-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ─── Apply info strip (replaces 2-column layout) ─── */
.apply-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

/* ─── Position Selector in Contact ─── */
.position-selector {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 107, 107, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Full-width variant used in the apply section */
.apply-position-full {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.position-selector h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 20px;
    text-align: center;
}

.position-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Side-by-side options for full-width layout */
.position-options-row {
    flex-direction: row;
    gap: 20px;
}

.position-options-row .position-option {
    flex: 1;
}

@media (max-width: 600px) {
    .position-options-row { flex-direction: column; }
    .apply-info-row { grid-template-columns: 1fr 1fr; }
}

.position-option { cursor: pointer; display: block; }
.position-option input[type="radio"] { display: none; }

.position-label {
    display: block;
    padding: 18px 22px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.position-label strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 700;
}

.position-label em {
    display: block;
    font-size: 13px;
    color: #FF6B6B;
    font-style: normal;
    font-weight: 600;
}

.position-option input:checked + .position-label {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
}

.position-option:hover .position-label {
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(255, 255, 255, 1);
}

.selector-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #7FFFD4;
    font-style: italic;
    min-height: 1.4em;
    font-weight: 600;
}

/* ─── Contact iframe (WhatsForm) ─── */
.contact-whatsform {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: white;
}

.contact-whatsform iframe {
    width: 100%;
    min-height: 900px;
    border: none;
    display: block;
}

/* ─── Custom Modal ─── */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.custom-modal.modal-open { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B, #7FFFD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover { color: #FF6B6B; }

.modal-body {
    overflow-y: auto;
    padding: 24px 28px;
    flex: 1;
}

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid rgba(255, 107, 107, 0.1);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .submit-btn {
    padding: 12px 30px;
    width: auto;
    font-size: 15px;
}

.terms-section { margin-bottom: 20px; }

.terms-section h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.terms-section p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ─── WhatsApp Float Button ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 900;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF6B6B, #7FFFD4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5); }

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── Footer Updated Links ─── */
.footer-link-btn {
    background: none;
    border: none;
    color: #B0BEC5;
    text-decoration: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-link-btn:hover {
    color: #7FFFD4;
    padding-left: 10px;
}
