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

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
}

.page-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, 
        #1a4d6d 0%, 
        #2d1b4e 25%, 
        #c2185b 50%, 
        #00acc1 75%, 
        #1a4d6d 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

.blob1 {
    width: 500px;
    height: 500px;
    background: #c2185b;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    transform: translateX(-25%);
}

.blob2 {
    width: 400px;
    height: 400px;
    background: #00acc1;
    bottom: 15%;
    right: 15%;
    animation-delay: 5s;
    transform: translateX(25%);
}

.blob3 {
    width: 350px;
    height: 350px;
    background: #2d1b4e;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 30px 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header-section {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brain-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

.left-info {
    text-align: left;
    padding-right: 20px;
}

.right-form {
    text-align: left;
}

h1 {
    color: white;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-svg {
    width: 24px;
    height: 24px;
    fill: white;
    flex-shrink: 0;
}

.contact-info-item span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 400;
}

.phone-link {
    color: white;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.phone-link:hover {
    color: #00acc1;
    transform: scale(1.05);
}

.info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 30px;
    font-weight: 300;
}

.booking-section {
    width: 100%;
}

.doctor-info {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.doctor-name {
    color: white;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: left;
}

.doctor-specialty {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 300;
    text-align: left;
}

.booking-title {
    color: white;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
    text-align: left;
}

.booking-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-align: left;
    margin-bottom: 20px;
}

.booking-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 400;
}

input, select, textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: #00acc1;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.2);
}

select {
    cursor: pointer;
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

select option {
    background: #1a4d6d;
    color: white;
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
}

.custom-select.open .custom-select-trigger {
    background: rgba(255, 255, 255, 0.25);
    border-color: #00acc1;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.2);
}

.custom-select-trigger span {
    flex: 1;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.custom-select.open .arrow-icon {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 77, 109, 0.98), rgba(45, 27, 78, 0.98));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(0, 172, 193, 0.3);
    color: white;
}

.custom-option.selected {
    background: rgba(0, 172, 193, 0.5);
    color: white;
    font-weight: 500;
}

/* Custom scrollbar для options */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb {
    background: rgba(0, 172, 193, 0.6);
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 172, 193, 0.8);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00acc1, #c2185b);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 172, 193, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #a5d6a7;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.3);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ef9a9a;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-info {
        padding-right: 0;
        text-align: center;
    }

    h1 {
        font-size: 36px;
    }

    .contact-info {
        align-items: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-x: hidden;
    }

    .container {
        padding: 20px 10px;
        max-width: 100%;
    }

    .content-grid {
        width: 100%;
        max-width: 100%;
    }

    .left-info, .right-form {
        width: 100%;
        max-width: 100%;
    }

    .header-section {
        margin-bottom: 30px;
    }

    .logo {
        margin-bottom: 30px;
    }

    .brain-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 18px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .icon-svg {
        width: 20px;
        height: 20px;
    }

    .contact-info-item span {
        font-size: 14px;
    }

    .phone-link {
        font-size: 18px;
    }

    .info-text {
        font-size: 12px;
        margin-top: 20px;
    }

    .doctor-info {
        text-align: center;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .doctor-name {
        font-size: 20px;
        text-align: center;
    }

    .doctor-specialty {
        font-size: 14px;
        text-align: center;
    }

    .booking-title {
        font-size: 24px;
        text-align: center;
    }

    .booking-subtitle {
        font-size: 12px;
        text-align: center;
        margin-bottom: 15px;
    }

    .booking-form {
        padding: 20px 18px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    input, select, textarea {
        font-size: 15px;
        padding: 10px;
    }

    .submit-btn {
        font-size: 15px;
        padding: 11px;
    }

    .blob {
        filter: blur(40px);
        max-width: 80vw;
    }

    .blob1 {
        width: 300px;
        height: 300px;
        left: 5%;
    }

    .blob2 {
        width: 250px;
        height: 250px;
        right: 5%;
    }

    .blob3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .contact-info-item span {
        font-size: 13px;
    }

    .phone-link {
        font-size: 16px;
    }

    .booking-form {
        padding: 18px 15px;
    }
}

/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 77, 109, 0.95), rgba(45, 27, 78, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-icon {
    width: 70px;
    height: 70px;
    fill: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    padding: 15px;
    margin: 0 auto;
}

.modal-title {
    color: white;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
}

.modal-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-close-btn {
    background: linear-gradient(135deg, #00acc1, #c2185b);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 172, 193, 0.5);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 25px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-message {
        font-size: 15px;
    }

    .modal-close-btn {
        padding: 10px 30px;
        font-size: 15px;
    }
}