/* Reset & Core */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #2d3748;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: #003781;
    margin-top: 0;
}

a {
    color: #005fb8;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #003781;
    text-decoration: underline;
}

/* Layout Wrapper */
.wrapper {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(0, 45, 110, 0.92), rgba(0, 20, 60, 0.88)),
        url("images/Offshore-Outsourcing.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    /* Increased max-width for a fuller feel */
    width: 100%;
    padding: 0 20px;
    /* Add some padding so it doesn't touch the very edges */
    margin: 0 auto;
}

/* Branding */
.branding {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.branding img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow for depth */
    transition: transform 0.3s ease;
}

.branding img:hover {
    transform: scale(1.02);
}

/* Navigation - Back Link */
.nav-back {
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.nav-back a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-back a:hover {
    color: #ffffff;
    transform: translateX(-3px);
    text-decoration: none;
    /* Override general a:hover underline */
}

/* Cards / Panel */
.panel {
    background: rgba(255, 255, 255, 0.98);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    position: relative;
    overflow: hidden;
}

/* Decorative top bar for panel */
/* Specifically used in index.html, but harmless if present globally */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #005fb8, #0099ff);
}

.panel h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: -webkit-linear-gradient(45deg, #003781, #0061d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.panel h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #edf2f7;
}

.panel h3 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a365d;
}

.panel h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: #0061d4;
    border-radius: 2px;
}

.panel p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

/* Highlight important text */
.highlight {
    color: #2b6cb0;
    font-weight: 500;
}

/* Buttons / CTA */
.cta {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #005fb8 0%, #00448a 100%);
    color: #ffffff;
    padding: 18px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 95, 184, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 95, 184, 0.4);
    filter: brightness(110%);
    color: #ffffff;
    /* Ensure text stays white */
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(0, 95, 184, 0.3);
}

.btn::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateX(4px);
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .panel {
        padding: 30px 20px;
    }

    .branding {
        flex-direction: column;
        gap: 20px;
    }

    .branding img {
        height: 50px;
        width: auto;
    }

    .panel h1 {
        font-size: 2rem;
    }

    .cta {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Contact Page Specifics --- */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    display: block;
    color: #003781;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.contact-table {
    width: 100%;
    font-size: 0.95rem;
    border-collapse: collapse;
}

.contact-table td {
    padding: 6px 0;
    vertical-align: top;
}

.contact-table td:first-child {
    font-weight: 600;
    color: #4a5568;
    width: 140px;
}

.note-box {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c5282;
    margin-top: 10px;
}

/* User Widget Styles */
.data-booking-widget {
    min-height: 90vh;
}

#description,
#appointment_date,
#appointment_time,
#telephone,
.form-control {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 2px solid #cfd7e6;
    /* Softer border to match theme */
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

#description:focus,
#appointment_date:focus,
#appointment_time:focus,
#telephone:focus,
.form-control:focus {
    border-color: #005fb8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 95, 184, 0.1);
}

.form-label {
    width: 100%;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

input:hover,
select:hover,
textarea:hover {
    border: 2px solid #a0aec0;
}

/* Specific styling for date input in widget */
[data-booking-widget] input[type="date"] {
    background-color: #f7f7f7;
    border: 2px solid #cfd7e6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
}

[data-booking-widget] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4);
    cursor: pointer;
    margin-right: 10px;
}

[data-booking-widget] input[type="date"]:hover,
[data-booking-widget] input[type="date"]:focus {
    outline: none;
    border-color: #005fb8;
    box-shadow: 0 0 0 3px rgba(0, 95, 184, 0.1);
}