:root {
    --primary-red: #D21F3C;
    /* Logo Red */
    --primary-black: #1A1A1A;
    /* Logo Black */
    --bg-gray: #f4f6f8;
}

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gray);
    color: var(--primary-black);
}

/* Sorgula Page Specific Body */
body.sorgula-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand img {
    height: 60px;
}

.btn-theme {
    background-color: var(--primary-red);
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background-color: white;
    color: var(--primary-red);
}

.btn-outline-theme {
    background-color: transparent;
    color: var(--primary-black);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    border: 2px solid var(--primary-black);
    transition: all 0.3s ease;
}

.btn-outline-theme:hover {
    background-color: var(--primary-black);
    color: white;
}

/* Main Card (index.php) */
.main-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    overflow: hidden;
    background: white;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-black) 0%, #D21F3C 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--primary-red);
    border-radius: 5px;
}

.section-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-top: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(210, 31, 60, 0.1);
    border-color: var(--primary-red);
    background: white;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.seans-radio:checked+.btn-seans {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(210, 31, 60, 0.3);
}

.btn-seans {
    border: 1px solid #ddd;
    color: #555;
    background: white;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-seans:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-seans del {
    opacity: 0.5;
}

.info-box {
    background: #fff9fa;
    border: 1px solid #ffd1d6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-box p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

/* Closed Alert */
.closed-alert {
    padding: 50px;
    text-align: center;
}

.closed-icon {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* Sorgula.php Styles */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.query-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(210, 31, 60, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.query-card .btn-theme {
    background-color: var(--primary-black);
    color: white;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.query-card .btn-theme:hover {
    background-color: var(--primary-red);
}

.query-card .form-control {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #eee;
    margin-top: auto;
    /* Push to bottom if flex column */
    padding-bottom: 20px;
}

.heartbeat-icon {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    vertical-align: middle;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.cef-brand {
    font-weight: 900;
    font-size: 1.1em;
    background: linear-gradient(45deg, #1A1A1A, #D21F3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.cef-brand:hover {
    transform: scale(1.1) rotate(2deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}