:root {
    --primary-color: #FF6B00; /* Ana turuncu */
    --primary-hover: #E65100; /* Koyu turuncu (hover) */
    --primary-disabled: #FFB74D; /* Açık turuncu (disabled) */
    --text-color: #344767;
    --border-color: #E0E0E0;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --cover-height: 35vh;
    --footer-text-color: #344767;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

/* Header Styles */
.site-header {
    background: linear-gradient(to right,#111111, #333333);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-center {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    position: absolute;
    right: 15px;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
}

/* Dil seçici stilleri */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-link {
    display: block;
    width: 48px;
    height: 32px;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s;
}

    .flag-link:hover {
        transform: scale(1.1);
    }

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Layout */
.page-layout {
    min-height: 100vh;
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px;
}

.cover-image {
    width: 100%;
    height: var(--cover-height);
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

    .cover-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.content-container {
    width: calc(100% - 2rem);
    margin: -8rem auto 0;
    position: relative;
    z-index: 2;
}

.grid-container {
    display: flex;
    justify-content: center;
    padding: 0 0.5rem;
    position: relative;
}

.header-card {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

    .header-card h2 {
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .header-card p {
        font-size: 0.9rem;
        opacity: 0.9;
    }

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px 1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 40px auto 0;
    padding-top: 30px;
}

.card-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-select, .form-input {
    width: 100%;
    height: 45px;
    padding: 5px 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
    color: var(--text-color);
}

    .form-select:focus, .form-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px var(--primary-color);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 24px 0;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label {
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

#birthday-sample-label {
    color: grey;
    margin-left: 20px;
}

.submit-button {
    width: 100%;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .submit-button:hover:not(:disabled) {
        background: var(--primary-hover);
    }

    .submit-button:disabled {
        background: var(--primary-disabled);
        cursor: not-allowed;
        opacity: 0.7;
    }

/* Footer Styles */
.site-footer {
    background: linear-gradient(to right,#111111, #333333);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
}

/* Error Message Styles */
.error-message {
    color: var(--error-color);
    font-size: 0.75rem;
    margin-top: 4px;
    margin-left: 4px;
}

.form-input.error {
    border-color: var(--error-color);
}

.form-input.valid {
    border-color: var(--success-color);
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alert Styles */
.alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.alert-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

    .alert-content p {
        margin-bottom: 15px;
        color: var(--text-color);
    }

    .alert-content button {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .alert-content button:hover {
            background: var(--primary-hover);
        }

.message-summary {
    color: grey;
    font-size: 18px;
}

.message-header {
    color: #db2626;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 23px 0px 10px 0px;
    display: inline-block;
}

.message-content {
    text-align: justify;
}

/* Responsive Design */
/* Büyük ekranlar için (1200px ve üzeri) */
@media (min-width: 1200px) {
    .card {
        max-width: 500px;
    }

    .header-card {
        max-width: 450px;
    }

    .form-group {
        margin-bottom: 28px;
    }

    .card-body {
        padding: 40px;
    }

    #approve-iframe {
        height: 770px;
    }
}

/* Tablet ve küçük masaüstü (768px - 1199px) */
@media (max-width: 1199px) {
    .cover-image {
        height: 32vh;
    }

    .card {
        max-width: 450px;
    }

    .header-card {
        width: 85%;
        max-width: 400px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .cover-image {
        height: 30vh;
    }

    .card {
        margin: 45px 16px 0;
    }

    .header-card {
        padding: 16px 24px;
    }

    .card-body {
        padding: 24px;
    }

    #approve-iframe {
        height: 510px;
    }

    #birthday-sample-label {
        display: block;
        margin: 0px;
        color: grey;
        font-size: 14px;
    }
}