/*
Theme Name: FlightParking
Theme URI: https://flightparking.com
Author: FlightParking Team
Author URI: https://flightparking.com
Description: Custom one-page theme for FlightParking booking system
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flightparking
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    background: #0a1628;
}

/* Admin Bar Adjustment */
body.admin-bar {
    padding-top: 112px;
}

body.admin-bar .main-nav {
    top: 32px;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 15px 40px;
    transition: background 0.3s ease;
}

.main-nav.scrolled {
    background: #050d18;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-book-btn {
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-book-btn:hover {
    background: #2980b9;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: -80px;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(10, 22, 40, 0.5) 0%,
        rgba(10, 22, 40, 0.7) 50%,
        rgba(10, 22, 40, 0.95) 90%,
        #0a1628 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}

.hero-title {
    color: #ffd700;
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0 0 20px 0;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    line-height: 1.4;
    animation: fadeInUp 1s ease 0.5s both;
}

/* Booking Form Section */
.booking-section {
    position: relative;
    padding: 40px 20px 80px;
    max-width: 800px;
    margin: -15% auto 0;
    z-index: 10;
}

.booking-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 0.8s ease 1s forwards;
}

.booking-form {
    background: #1a2f4d;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 0.8s ease 1.2s forwards;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e8f0f7;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #2c4a6b;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #0d1f35;
    color: #fff;
}

/* Remove number input spinners for consistent styling */
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: #132e4a;
}

.form-group input::placeholder {
    color: #6b8aaa;
}

.form-divider {
    border-top: 2px solid #2c4a6b;
    margin: 30px 0;
}

.datetime-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    color: #e8f0f7;
}

.checkbox-group a {
    color: #5dade2;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
    color: #85c4f0;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
    padding: 30px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
    margin: 40px auto;
    max-width: 800px;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Flatpickr Dark Theme Customization */
.flatpickr-calendar {
    background: #050d18 !important;
    border: 1px solid #2c4a6b !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-months {
    background: #050d18 !important;
}

.flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #0d1f35 !important;
    border: 1px solid #2c4a6b !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: #132e4a !important;
}

.flatpickr-weekdays {
    background: #050d18 !important;
}

span.flatpickr-weekday {
    color: #a8b8cc !important;
}

.flatpickr-days {
    background: #050d18 !important;
}

.flatpickr-day {
    color: #fff !important;
    border: none !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: #132e4a !important;
    border-color: #2c4a6b !important;
}

.flatpickr-day.today {
    border-color: #5dade2 !important;
    color: #fff !important;
}

.flatpickr-day.today:hover {
    background: #132e4a !important;
    border-color: #5dade2 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #ffd700 !important;
    color: #050d18 !important;
    border-color: #ffd700 !important;
}

.flatpickr-day.inRange {
    background: #1a2f4d !important;
    border-color: #2c4a6b !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #4a5568 !important;
    cursor: not-allowed !important;
    background: transparent !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: transparent !important;
    color: #4a5568 !important;
}

.flatpickr-time {
    background: #050d18 !important;
    border-top: 1px solid #2c4a6b !important;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
    color: #fff !important;
    background: #0d1f35 !important;
    /*border: 1px solid #2c4a6b !important;*/
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
    background: #132e4a !important;
}

.flatpickr-time input:focus {
    background: #132e4a !important;
    border-color: #3498db !important;
}

.flatpickr-time .flatpickr-time-separator {
    border: none !important;
}

.flatpickr-time .numInput::-webkit-inner-spin-button,
.flatpickr-time .numInput::-webkit-outer-spin-button {
    filter: invert(1);
}

.flatpickr-time .arrowUp,
.flatpickr-time .arrowDown {
    border-bottom-color: #fff !important;
}

.flatpickr-time .arrowDown {
    border-top-color: #fff !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #ffd700 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #ffd700 !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #fff !important;
}

/* Home Text Section */
.home-text {
    margin-top: 60px;
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.home-text p {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background: #1a2f4d;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    color: #5dade2;
    font-size: 1.1rem;
    display: block;
}

.contact-details a {
    color: #e8f0f7;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #ffd700;
}

.contact-address {
    display: inline;
}

/* Footer Section */
.footer-section {
    background: #050d18;
    color: #a8b8cc;
    padding: 30px 20px;
    text-align: center;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section a {
    color: #5dade2;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
    color: #85c4f0;
}

/* Language Switcher */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 0;
}

.lang-btn.active {
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: #ccc;
}

.lang-separator {
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 782px) {
    body.admin-bar {
        padding-top: 126px;
    }

    body.admin-bar .main-nav {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 15px 20px;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-right {
        gap: 15px;
    }

    .language-switcher {
        gap: 8px;
    }

    .lang-btn {
        font-size: 13px;
    }

    .nav-book-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .booking-section {
        padding: 40px 15px;
        margin-top: -15%;
    }

    .booking-section h2 {
        font-size: 1.8rem;
    }

    .booking-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .datetime-group {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-info {
        padding: 30px 25px;
    }

    .contact-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 10px 15px;
    }

    .nav-logo img {
        height: 35px;
    }

    .nav-right {
        gap: 10px;
    }

    .language-switcher {
        gap: 5px;
    }

    .lang-btn {
        font-size: 12px;
    }

    .nav-book-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .booking-section {
        margin-top: -15%;
    }

    .booking-section h2 {
        font-size: 1.5rem;
    }

    .booking-form {
        padding: 20px;
    }

    .form-message.success {
        font-size: 1.1rem;
        padding: 25px 15px;
        margin: 30px auto;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-info {
        padding: 25px 20px;
        gap: 25px;
    }

    .contact-icon {
        font-size: 1.3rem;
        min-width: 30px;
    }

    .contact-label {
        font-size: 1rem;
    }

    .contact-details a {
        font-size: 1rem;
    }
}

/* Price Display */
.price-display {
    background: #1a2f4d;
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    border: 2px solid #ffd700;
}

@media (max-width: 480px) {
    .price-display {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
}
