/* Основни стилове за формата */
.id-application-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(26, 54, 93, 0.1);
    border-radius: 12px;
    border-top: 5px solid #1a365d;
}

/* Заглавие */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f4ff;
}

/* За инфо кутията */
.payment-info-box {
   background: #fff3e6;
   border-left: 4px solid #ff9800;
   padding: 15px 20px;
   margin-top: 15px;
   border-radius: 4px;
}

.payment-info-box p {
   color: #1a365d;
   font-size: 16px;
   margin: 0;
   line-height: 1.5;
}

.payment-info-box strong {
   color: #ff9800;
}

.form-header h2 {
    color: #1a365d;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header p {
    color: #506784;
    font-size: 16px;
}

/* Секции */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e8f4ff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.05);
}

.form-section h3 {
    color: #1a365d;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f4ff;
}

/* Документи за избор */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafd;
    border: 2px solid #e8f4ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-option:hover {
    background: #e8f4ff;
    border-color: #1a365d;
}

.document-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.document-label {
    flex-grow: 1;
    color: #1a365d;
    font-weight: 500;
}

/* Поле групи */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a365d;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8f4ff;
    border-radius: 6px;
    font-size: 16px;
    color: #506784;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a365d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Валидационни съобщения */
.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    padding: 5px 0;
}

input.invalid {
    border-color: #ff6b6b !important;
}

/* Цени */
.price-option {
    border: 1px solid #e8f4ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-option:hover {
    border-color: #1a365d;
    background: #f8fafd;
}

.price-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.price {
    font-weight: bold;
    color: #1a365d;
    font-size: 1.2em;
}

/* Бутон */
.form-button {
    background: #1a365d;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-button:hover {
    background: #244875;
    transform: translateY(-1px);
}

.form-button:active {
    transform: translateY(1px);
}

/* Спинър */
.spinner {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Съобщение за успех */
.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.success-message p {
    margin: 10px 0;
    color: #1a365d;
}

/* Responsive дизайн */
@media screen and (max-width: 768px) {
    .id-application-form {
        margin: 20px;
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }
}

/* GDPR секция */
.gdpr-section {
    margin-bottom: 20px;
}

.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.gdpr-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.gdpr-checkbox span {
    font-size: 14px;
    color: #1a365d;
    line-height: 1.4;
}

.custom-checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.custom-checkout-container h3 {
    color: #1a365d;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f4ff;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #1a365d;
    font-weight: 500;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8f4ff;
    border-radius: 6px;
    font-size: 16px;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #1a365d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.customer-details,
.german-address,
.additional-info,
.payment-section {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.05);
}

#place_order {
    background: #1a365d;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order:hover {
    background: #244875;
    transform: translateY(-1px);
}