/* ============================================================
   GKU Physical Education Landing Page - Styles
   ============================================================ */

/* Reset & Variables */
:root {
    --primary-color: #0064b0;
    --primary-hover: #00508c;
    --secondary-color: #d9ecf9;
    --accent-red: #a92323;
    --accent-red-hover: #8f1b1b;
    --text-dark: #222222;
    --text-grey: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #cccccc;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Container - Split Layout */
.page-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ------------------------------------------------------------
   LEFT VISUAL SIDE
   ------------------------------------------------------------ */
.visual-side {
    flex: 0.7;
    position: relative;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: var(--white);
    z-index: 1;
}

/* Blue overlay over background image */
.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 100, 176, 0.5) 0%, rgba(0, 50, 100, 0.2) 100%);
    z-index: -1;
}

.visual-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
}

/* Header Logo Capsule */
.logo-capsule {
    background-color: var(--white);
    border-radius: 50px;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    align-self: center;
    transition: var(--transition);
}

.logo-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.header-logo-img {
    height: 52px;
    width: auto;
    display: block;
}

/* Admission Text Block */
.admission-info-block {
    margin-top: 5rem;
    margin-bottom: 0;
    padding: 2rem 0 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 440px;
}

.entrance-tag {


    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background-color: #A22D30;
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 10px rgba(169, 35, 35, 0.3);
    animation: pulse 2s infinite;
}

.main-title {
    font-family: var(--font-primary);
    color: #FFF;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 1.5rem;
}

.deadline-text {
    color: #FFF;
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    /* 150% */
}

.deadline-text strong {
    color: #FFF;
    font-family: var(--font-primary);
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}

/* Query Contact Card */
.contact-card {
    background-color: var(--primary-color);
    border-radius: 14px;
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 440px;
    margin-top: 40px;
    margin-bottom: auto;
    width: 100%;
}

.bell-icon-wrap {
    background-color: var(--white);
    color: var(--primary-color);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-text-wrap {
    display: flex;
    flex-direction: column;
}

.contact-lbl {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2px;
}

.contact-nums {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ------------------------------------------------------------
   RIGHT FORM SIDE
   ------------------------------------------------------------ */
.form-side {
    flex: 1.3;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 4rem 1.5rem;
    position: relative;
}

/* Social Bar */
.social-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 12px rgba(0, 100, 176, 0.3);
}

/* Application Form Container */
.form-container {
    width: 100%;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.header-icon-wrap {
    background-color: var(--secondary-color);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-header-icon {
    width: 26px;
    height: 26px;
}

.header-title-wrap {
    display: flex;
    flex-direction: column;
}

.form-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-top: 2px;
}

.form-divider {
    border: 0;
    border-top: 1px solid #cccccc;
    margin-bottom: 2.25rem;
}

/* Form Fields */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 11px 16px;
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: var(--transition);
    background-color: var(--white);
    height: 45px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3.5px rgba(0, 100, 176, 0.12);
}

/* Hide number input spin buttons */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}

/* Mobile Number Input Wrapper */
.phone-input-wrap {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    height: 45px;
    transition: var(--transition);
}

.phone-input-wrap input {
    border: none !important;
    border-radius: none !important;
}

.phone-input-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3.5px rgba(0, 100, 176, 0.12);
}

.country-select-wrap {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

/* Custom styled country selector with chevron caret */
.country-select-wrap select.country-code {
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 16px 0 10px;
    height: 100%;
    font-weight: 600;
    font-size: 0.92rem;
    width: 70px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L3.54167 3.54167L7.08333 0H0Z' fill='%23666666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px 4px;
    cursor: pointer;
}

.phone-input-wrap input {
    flex: 1;
    border: none;
    height: 100%;
    border-radius: 0;
}

.phone-input-wrap input:focus {
    box-shadow: none;
}

/* Custom Styled Date Picker */
.date-input-wrap {
    position: relative;
}

.date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    color: transparent;
    z-index: 2;
}

.custom-calendar-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.custom-calendar-icon svg path {
    fill: var(--text-dark);
}

@supports not selector(::-webkit-calendar-picker-indicator) {
    .custom-calendar-icon {
        display: none;
    }
}

/* CAPTCHA SECTION */
.captcha-group {
    grid-column: span 1;
}

.captcha-flex-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.captcha-display {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #444444;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    min-width: 95px;
    position: relative;
    overflow: hidden;
}

.captcha-display::after {
    display: none;
}

.captcha-refresh-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.captcha-refresh-btn:hover {
    background-color: var(--primary-hover);
    transform: rotate(180deg);
}

.captcha-flex-wrap input[type="text"] {
    flex: 1;
    min-width: 100px;
}

/* Submit Button */
.submit-btn {
    grid-column: span 2;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 52px;
    box-shadow: 0 4px 12px rgba(0, 100, 176, 0.2);
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(0, 100, 176, 0.35);
}

.submit-btn:active {
    transform: scale(0.985);
}

.btn-loader {
    display: inline-block;
}

.hide {
    display: none !important;
}

/* Footer Section */
.site-footer {
    width: 100%;
    margin-top: 3rem;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin-bottom: 1.25rem;
}

.copyright-text {
    font-size: 0.78rem;
    color: var(--text-grey);
    text-align: center;
}

/* ------------------------------------------------------------
   TOAST NOTIFICATION STYLING
   ------------------------------------------------------------ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 320px;
    max-width: 450px;
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #2ecc71;
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: #2ecc71;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast-msg {
    font-size: 0.88rem;
    font-weight: 500;
}

/* ------------------------------------------------------------
   ANIMATIONS & MEDIA QUERIES
   ------------------------------------------------------------ */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 15px rgba(169, 35, 35, 0.5);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .visual-side {
        flex: 0.8;
        padding: 2.5rem;
    }

    .form-side {
        flex: 1.2;
        padding: 2rem 2.5rem;
    }

    .main-title {
        font-size: 2.6rem;
    }

    .deadline-text {
        font-size: 1.15rem;
    }

    .deadline-text strong {
        font-size: 1.45rem;
    }

    .form-grid {
        gap: 1.25rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .page-container {
        flex-direction: column;
    }

    .visual-side {
        flex: none;
        min-height: 380px;
        height: auto;
        padding: 3rem 2.5rem;
    }

    .visual-content {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .admission-info-block {
        margin: 2.5rem 0;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .form-side {
        flex: none;
        padding: 3rem 4rem 2rem;
    }

    .form-container {
        order: 1;
    }

    .social-bar {
        order: 2;
        justify-content: center;
        margin: 2.5rem 0 0 0;
    }

    .site-footer {
        order: 3;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .visual-side {
        min-height: 340px;
        padding: 2.5rem 1.5rem 2rem;
    }

    .logo-capsule {
        padding: 8px 18px;
    }

    .header-logo-img {
        height: 44px;
    }

    .main-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .deadline-text {
        font-size: 1.05rem;
    }

    .deadline-text strong {
        font-size: 1.3rem;
    }

    .contact-card {
        padding: 1rem 1.4rem;
        max-width: 440px;
        width: 100%;
        gap: 1.2rem;
        margin-top: 25px;
        margin-bottom: 0;
    }

    .bell-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .contact-nums {
        font-size: 1rem;
    }

    .form-side {
        padding: 2.5rem 2rem 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .captcha-group,
    .submit-btn {
        grid-column: span 1;
    }

    .social-bar {
        margin-top: 2rem;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .visual-side {
        min-height: 290px;
        padding: 2rem 1rem 1.5rem;
    }

    .entrance-tag{
        font-size: 12px;
    }
    .header-logo-img {
        height: 36px;
    }

    .main-title {
        font-size: 20px;
    }

    .deadline-text {
        font-size: 12px;
    }

    .deadline-text strong {
        font-size: 14px;
    }

    .contact-card {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        margin-top: 20px;
    }

    .bell-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .contact-nums {
        font-size: 0.88rem;
    }

    .form-side {
        padding: 2rem 1.25rem 1.5rem;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .captcha-flex-wrap {
        flex-wrap: wrap;
    }

    .captcha-flex-wrap input[type="text"] {
        width: 100%;
        flex: none;
        margin-top: 4px;
    }
}