/* Global Styles */
:root {
    --primary-color: #0c4da2;
    --secondary-color: #e63946;
    --accent-color: #1d3557;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --gray-color: #a8dadc;
    --success-color: #2ecc71;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --official-red: #ce1126;
    --official-blue: #00247d;
    --official-green: #007a3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    background-image: url('bg_pattern.png');
    background-repeat: repeat;
    position: relative;
}

html[dir="rtl"] body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arial', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Official Banner */
.official-banner {
    background-color: var(--official-red);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content span {
    font-size: 14px;
}

/* Header Styles */
.header {
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--official-green);
}

.logo-container {
    display: flex;
    align-items: center;
}

.emblem-logo {
    height: 60px;
    margin-right: 15px;
}

html[dir="rtl"] .emblem-logo {
    margin-right: 0;
    margin-left: 15px;
}

.header-titles h1 {
    color: var(--official-blue);
    font-size: 22px;
    margin: 0;
}

.header-titles h2 {
    color: var(--official-green);
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-switcher a.active {
    font-weight: bold;
    color: var(--primary-color);
}

.language-switcher a:hover {
    background-color: #f0f0f0;
}

.divider {
    margin: 0 5px;
    color: #ccc;
}

/* Main Content Layout */
.main-content {
    display: flex;
    width: 100%;
    gap: 30px;
    margin: 30px 0;
}

/* Card Styles */
.card {
 
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid #e0e0e0;
}

.main-card {
    flex: 2;
    max-width: 600px;
}

.card-header {
    background-color: var(--official-blue) !important;
    color: white !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title h2 {
    margin: 0;
    font-size: 18px;
}

.card-icon {
    width: 24px;
    height: 24px;
}

/* Form Styles */
.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.input-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

html[dir="rtl"] .input-icon {
    margin-right: 0;
    margin-left: 8px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color var(--transition-speed);
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(12, 77, 162, 0.2);
    background-color: white;
}

.error {
    color: var(--secondary-color);
    font-size: 14px;
    margin-top: 5px;
}

/* Plate Number Styling */
.plate-input-container {
    position: relative;
}

.plate-display {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 2px;
    position: relative;
}

.plate-display input {
    border: none;
    background: transparent;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    letter-spacing: 1px;
}

.plate-display input:focus {
    outline: none;
    box-shadow: none;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.btn-primary {
    background-color: var(--official-green);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #006633;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-icon {
    width: 18px;
    height: 18px;
}

/* Secure Notice */
.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background-color: #f0f7ff;
    border-top: 1px solid #e0e0e0;
    color: #555;
    font-size: 14px;
}

.secure-icon {
    width: 16px;
    height: 16px;
}

/* Instructions Panel */
.instructions-panel {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    max-width: 400px;
}

.instructions-header {
    background-color: var(--official-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-header h3 {
    margin: 0;
    font-size: 18px;
}

.info-icon {
    width: 20px;
    height: 20px;
}

.instructions-list {
    padding: 20px 20px 20px 40px;
    list-style-type: decimal;
}

html[dir="rtl"] .instructions-list {
    padding: 20px 40px 20px 20px;
}

.instructions-list li {
    margin-bottom: 15px;
    color: #444;
}

.instructions-list li:last-child {
    margin-bottom: 0;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    font-weight: bold;
    color: var(--official-red);
}

.phone-icon {
    width: 18px;
    height: 18px;
}

.ministry-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.ministry-logo, .knet-logo {
    height: 40px;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    border-top: 5px solid var(--official-green);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-emblem {
    height: 40px;
}

.footer-info {
    text-align: center;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Watermark */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('kuwait_watermark.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Animation Styles */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .main-card, .instructions-panel {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
    }
    
    .emblem-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    html[dir="rtl"] .emblem-logo {
        margin-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .button-group, .official-banner, .watermark {
        display: none;
    }
    
    .container {
        padding: 0;
        min-height: auto;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex
;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}
.popup-header {
    background-color: var(--official-blue);
    padding: 15px 20px;
    text-align: center;
    position: relative;
}
.popup-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.popup-body {
    padding: 30px;
    text-align: center;
}
.arabic-text {
    direction: rtl;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.english-text {
    text-align: center;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}
.hidden {
    display: none !important;
}
.submit-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: var(--official-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}
.thankyou-parent{
    text-align: center;
    margin: 100px 0px 100px 0px;
}
.thankyou-parent a{
    width: auto;
    margin-top: 30px;
}