/**
 * Custom CSS for Visa Templates
 * Enhanced styling for Student Visa, Work Visa, Tourist Visa, and Permanent Residency templates
 */

/* ========================================
   GENERAL VISA TEMPLATE STYLES
======================================== */

:root {
    --primary-color: #606060;
    --primary-light: #606060;
    --primary-dark: #606060;
    --white-color: #ffffff;
    --black-color: #000000;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #606060;
}

/* Global icon color override for visa templates */
.student-visa-enhanced-page i,
.work-visa-enhanced-page i,
.tourist-visa-enhanced-page i,
.permanent-residency-page i {
    color: var(--primary-color) !important;
}

.student-visa-enhanced-page .card:hover i,
.work-visa-enhanced-page .card:hover i,
.tourist-visa-enhanced-page .card:hover i,
.permanent-residency-page .card:hover i {
    color: var(--primary-dark) !important;
}

/* Override Bootstrap color classes for icons */
.student-visa-enhanced-page .text-primary,
.work-visa-enhanced-page .text-primary,
.tourist-visa-enhanced-page .text-primary,
.permanent-residency-page .text-primary,
.student-visa-enhanced-page .text-success,
.work-visa-enhanced-page .text-success,
.tourist-visa-enhanced-page .text-success,
.permanent-residency-page .text-success,
.student-visa-enhanced-page .text-warning,
.work-visa-enhanced-page .text-warning,
.tourist-visa-enhanced-page .text-warning,
.permanent-residency-page .text-warning,
.student-visa-enhanced-page .text-info,
.work-visa-enhanced-page .text-info,
.tourist-visa-enhanced-page .text-info,
.permanent-residency-page .text-info,
.student-visa-enhanced-page .text-danger,
.work-visa-enhanced-page .text-danger,
.tourist-visa-enhanced-page .text-danger,
.permanent-residency-page .text-danger {
    color: var(--primary-color) !important;
}

.visa-hero-section {
    position: relative;
    overflow: hidden;
}

.visa-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(96, 96, 96, 0.1);
    z-index: 1;
}

.visa-hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-stats h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.hero-stats p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: var(--white-color);
}

/* ========================================
   CARDS AND SECTIONS
======================================== */

.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    border: 1px solid var(--medium-gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(96, 96, 96, 0.15) !important;
    border-color: var(--primary-color);
}

.destination-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Ensure all Font Awesome icons use gray colors */
.fa-3x,
.fa-2x,
.fa-lg,
.fa-sm,
.fa-xs {
    color: var(--primary-color) !important;
}

.card:hover .fa-3x,
.card:hover .fa-2x,
.card:hover .fa-lg,
.card:hover .fa-sm,
.card:hover .fa-xs {
    color: var(--primary-dark) !important;
}

/* ========================================
   SERVICE ITEMS
======================================== */

.service-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background-color: var(--light-gray);
    padding-left: 1rem;
    border-radius: 10px;
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 96, 96, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.service-item:hover .service-icon {
    background: rgba(96, 96, 96, 0.2);
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* ========================================
   PROCESS STEPS
======================================== */

.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 1;
}

.process-step:last-child::before {
    display: none;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid var(--white-color);
    box-shadow: 0 4px 15px rgba(96, 96, 96, 0.2);
    background-color: var(--primary-color) !important;
    color: var(--white-color);
}

/* ========================================
   DESTINATION CARDS
======================================== */

.destination-card {
    position: relative;
    overflow: hidden;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 96, 96, 0.05), rgba(96, 96, 96, 0.1));
    opacity: 0;
    transition: all 0.3s ease;
}

.destination-card:hover::before {
    opacity: 1;
}

.flag-icon {
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.destination-card:hover .flag-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-dark);
}

/* Override any colored icons in destination cards */
.destination-card .fa-3x,
.destination-card .fa-2x,
.destination-card .fa-lg {
    color: var(--primary-color) !important;
}

.destination-card:hover .fa-3x,
.destination-card:hover .fa-2x,
.destination-card:hover .fa-lg {
    color: var(--primary-dark) !important;
}

.destination-stats {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(96, 96, 96, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ========================================
   CONTACT FORMS
======================================== */

.contact-form-section .card {
    border: none;
    box-shadow: none;
    background-color: var(--primary-dark);
    border-radius: 15px;
    padding: 2rem;
}

.contact-form-section .card .card-body {
    padding: 0;
}

.contact-form-section .form-control {
    border: 1px solid var(--white-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--white-color);
    color: var(--black-color);
}

.contact-form-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    outline: none;
}

.contact-form-section .form-control::placeholder {
    color: var(--primary-light);
}

.contact-form-section .form-label {
    font-weight: 600;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.contact-form-section .btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: var(--white-color);
    border: 1px solid var(--white-color);
    color: var(--primary-color);
}

.contact-form-section .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    transform: none;
    box-shadow: none;
}

/* Contact form section headings */
.contact-form-section h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form-section .lead {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Global button styling for all visa templates */
.student-visa-enhanced-page .btn,
.work-visa-enhanced-page .btn,
.tourist-visa-enhanced-page .btn,
.permanent-residency-page .btn {
    background-color: var(--white-color);
    border: 1px solid var(--white-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.student-visa-enhanced-page .btn:hover,
.work-visa-enhanced-page .btn:hover,
.tourist-visa-enhanced-page .btn:hover,
.permanent-residency-page .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    transform: none;
    box-shadow: none;
}

/* Contact Form 7 specific button styling */
.wpcf7-form .wpcf7-submit {
    background-color: var(--white-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--white-color) !important;
    color: var(--white-color) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   CONTACT INFO SECTION
======================================== */

.contact-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Override any colored icons in contact section */
.contact-icon .fa-3x,
.contact-icon .fa-2x,
.contact-icon .fa-lg {
    color: var(--primary-color) !important;
}

.contact-item:hover .fa-3x,
.contact-item:hover .fa-2x,
.contact-item:hover .fa-lg {
    color: var(--primary-dark) !important;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .hero-stats h3 {
        font-size: 2rem;
    }
    
    .process-step::before {
        display: none;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 1rem;
    }
    
    .destination-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .visa-hero-section {
        padding: 3rem 0;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visa-hero-section .hero-content,
.visa-hero-section .hero-image {
    animation: fadeInUp 0.8s ease-out;
}

.visa-hero-section .hero-image {
    animation-delay: 0.2s;
}

/* ========================================
   SPECIFIC TEMPLATE STYLES
======================================== */

/* Student Visa Specific */
.student-visa-enhanced-page .visa-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Work Visa Specific */
.work-visa-enhanced-page .visa-hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

/* Tourist Visa Specific */
.tourist-visa-enhanced-page .visa-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* Permanent Residency Specific */
.permanent-residency-page .visa-hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* ========================================
   FORM VALIDATION STYLES
======================================== */

.wpcf7-not-valid {
    border-color: var(--black-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

.wpcf7-not-valid-tip {
    color: var(--black-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.wpcf7-mail-sent-ok {
    background-color: rgba(96, 96, 96, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-dark);
}

.wpcf7-validation-errors {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--black-color);
    color: var(--black-color);
}

/* ========================================
   LOADING STATES
======================================== */

.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wpcf7-form .wpcf7-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   ACCESSIBILITY
======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   VISA CARD LINKS ON HOME PAGE
======================================== */

.visa-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.visa-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.visa-card-link:hover .visa-card {
    box-shadow: 0 10px 25px rgba(96, 96, 96, 0.2);
    border-color: var(--primary-color);
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .visa-hero-section {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .btn {
        display: none !important;
    }
}
