/* App Warteliste Formular Styles */

.app-waitlist-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.app-waitlist-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.app-waitlist-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
}

.app-waitlist-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.app-waitlist-form {
    margin-top: 30px;
}

.app-waitlist-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .app-waitlist-field-group {
        grid-template-columns: 1fr;
    }
}

.app-waitlist-field {
    margin-bottom: 20px;
}

.app-waitlist-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.app-waitlist-field input[type="text"],
.app-waitlist-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.app-waitlist-field input[type="text"]:focus,
.app-waitlist-field input[type="email"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.app-waitlist-field input::placeholder {
    color: #999;
}

/* Plattform-Auswahl Styles */
.app-waitlist-platform-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
}

.app-waitlist-platform-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .app-waitlist-platform-options {
        grid-template-columns: 1fr;
    }
}

.app-waitlist-platform-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.app-waitlist-platform-option:hover {
    border-color: #2271b1;
    background: #f8f9fa;
}

.app-waitlist-platform-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.app-waitlist-platform-option input[type="radio"]:checked + .platform-icon + .platform-text {
    color: #2271b1;
    font-weight: 600;
}

/* Checked State - mit :has() für moderne Browser */
.app-waitlist-platform-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Fallback für ältere Browser ohne :has() Support */
.app-waitlist-platform-option.selected {
    border-color: #2271b1;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.platform-icon {
    font-size: 24px;
    margin-right: 12px;
    line-height: 1;
}

.platform-text {
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.app-waitlist-messages {
    margin-bottom: 20px;
    min-height: 20px;
}

.app-waitlist-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.app-waitlist-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.app-waitlist-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.app-waitlist-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 48px;
}

.app-waitlist-submit-btn:hover {
    background: linear-gradient(135deg, #135e96 0%, #0f4c75 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.app-waitlist-submit-btn:active {
    transform: translateY(0);
}

.app-waitlist-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.app-waitlist-submit-btn .btn-loader {
    display: inline-block;
}

.app-waitlist-submit-btn.loading .btn-text {
    display: none;
}

.app-waitlist-submit-btn.loading .btn-loader {
    display: inline-block;
}

/* Animation für Ladezustand */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.app-waitlist-submit-btn.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

