/**
 * WeTime Form Router Styles
 */
 #formbox {
    padding: 40px;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid #dcdfe6;
}

.wetime-form-container {
    max-width: 600px;
    padding: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.wetime-form-router {
    margin: 0 auto;
    margin-top: 40px;
}

#wetime-router-intro-text {
    margin-bottom: -40px;
}

#wetime-router-intro-text #begin-btn {
    margin-top: 0;
}

/* Flex container for side-by-side fields */
.wetime-flex-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wetime-flex-item {
    flex: 1;
    margin-bottom: 0 !important; /* Override the default margin-bottom */
}

.wetime-form-group {
    margin-bottom: 20px;
}

.wetime-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wetime-form-group input,
.wetime-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.wetime-date-inputs {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.wetime-date-inputs select {
    flex: 1;
}

#house-number {
    max-width: 110px;
}

.wetime-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.wetime-checkbox-container input[type="checkbox"] {
    transform: scale(1.5);  
    margin-left: 4px;    
}

/* Input container styling */
.input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Validation styling */

.address-confirm-message {
    margin-bottom: 0;
    margin-top: 30px;
}

/* Enhanced address confirmation styling */
.address-confirm-box {
    display: flex;
    align-items: flex-start;
    background-color: #e8f0fe;
    border: 1px solid #cccccc;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    max-width: 586px;
}

.address-icon {
    color: #28a745;
    margin-right: 15px;
    flex-shrink: 0;
}

.address-content {
    flex-grow: 1;
}

.address-content h4 {
    margin: 0 0 5px 0;
    color: #212529;
    font-size: 16px;
}

.address-value {
    font-weight: bold;
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #212529;
}

.confirm-question {
    margin: 30px 0px 5px 0px;
}

/* Loading button style */
.wetime-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.wetime-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    animation: wetime-spin 0.8s linear infinite;
}

@keyframes wetime-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Step styling */
.wetime-step {
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Intro section styling */

#wetime-router-intro-text .wetime-btn {
    margin-top: 20px;
    display: inline-block;
    font-size: 18px;
    padding: 12px 30px;
}

.wetime-step h3 {
    margin-top: 0;
    color: var(--wetime-blauw);
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.wetime-step.completed h3 {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    padding-bottom: 20px;
    font-size: 18px;
    color: var(--wetime-groen);
}

.wetime-step.completed h3::after {
    content: "✓";
    color: #28a745;
    font-size: 22px;
    position: absolute;
    right: 10px;
    top: 10px;
    transform: translateY(-50%);
}

.wetime-step.completed .step-content {
    display: none;
}

.wetime-btn {
    background-color: var(--wetime-rood);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wetime-btn:hover {
    background-color: #cf0020;
}

#check-btn {
    background-color: var(--wetime-rood);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 30px;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#check-btn:hover {
    background-color: #cf0020;
}

.wetime-alert {
    background-color: #f8f9fa;
    color: #d91432;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
    border-left: 4px solid #d91432;
}

.wetime-confirm {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #c3e6cb;
}


/* Responsive styles */
@media (max-width: 480px) {
    .wetime-flex-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .wetime-flex-item {
        margin-bottom: 15px !important;
    }
    
    .wetime-date-inputs {
        flex-direction: column;
        gap: 5px;
    }
}
