/* Hockey Camp Registration Form Styles */

.hc-registration-form-wrapper {
    padding: 20px;
}

.hc-registration-form {
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hc-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #4b5563;
}

.hc-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.hc-form-section-title {
    font-size: 1.5rem !important;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f9fafb;
}

.hc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.hc-form-group {
    display: flex;
    flex-direction: column;
}

.hc-form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #d1d5db;
    font-size: 0.875rem;
}

.hc-form-group label.hc-required::after {
    content: ' *';
    color: #ef4444;
}

.hc-form-group input[type="text"],
.hc-form-group input[type="email"],
.hc-form-group input[type="tel"],
.hc-form-group input[type="date"],
.hc-form-group input[type="number"],
.hc-form-group select,
.hc-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    font-size: 1rem;
    background: #374151 !important;
    color: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* iOS Safari spezifische Fixes */
@supports (-webkit-touch-callout: none) {
    .hc-form-group input[type="text"],
    .hc-form-group input[type="email"],
    .hc-form-group input[type="tel"],
    .hc-form-group input[type="date"],
    .hc-form-group input[type="number"],
    .hc-form-group select,
    .hc-form-group textarea {
        background: #374151 !important;
        background-color: #374151 !important;
        color: #fff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-text-fill-color: #fff !important;
    }
    
    .hc-form-group input:focus,
    .hc-form-group select:focus,
    .hc-form-group textarea:focus {
        background: #374151 !important;
        background-color: #374151 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
}

/* Zusätzliche iOS/iPadOS Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hc-form-group input[type="text"],
    .hc-form-group input[type="email"],
    .hc-form-group input[type="tel"],
    .hc-form-group input[type="date"],
    .hc-form-group input[type="number"],
    .hc-form-group select,
    .hc-form-group textarea {
        background: #374151 !important;
        background-color: #374151 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
}

/* iOS Safari Autofill Styles überschreiben */
.hc-form-group input:-webkit-autofill,
.hc-form-group input:-webkit-autofill:hover,
.hc-form-group input:-webkit-autofill:focus,
.hc-form-group input:-webkit-autofill:active,
.hc-form-group select:-webkit-autofill,
.hc-form-group select:-webkit-autofill:hover,
.hc-form-group select:-webkit-autofill:focus,
.hc-form-group select:-webkit-autofill:active,
.hc-form-group textarea:-webkit-autofill,
.hc-form-group textarea:-webkit-autofill:hover,
.hc-form-group textarea:-webkit-autofill:focus,
.hc-form-group textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #374151 inset !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #374151 !important;
    background: #374151 !important;
    color: #fff !important;
    border-color: #4b5563 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hc-form-group input:-webkit-autofill:focus,
.hc-form-group select:-webkit-autofill:focus,
.hc-form-group textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #374151 inset, 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #374151 !important;
    background: #374151 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

.hc-form-group input::placeholder,
.hc-form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.hc-form-group select option {
    background: #374151;
    color: #f9fafb;
}

.hc-form-group select option:disabled {
    background: #1f2937;
    color: #6b7280;
    font-style: italic;
}

.hc-form-group input:focus,
.hc-form-group select:focus,
.hc-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #374151 !important;
    color: #fff !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.hc-form-group select:hover {
    background: #374151 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.hc-form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Checkbox Styles */
.hc-form-consent {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #4b5563;
}

.hc-form-group-checkbox {
    margin-bottom: 20px;
}

.hc-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.hc-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.hc-checkbox-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #d1d5db;
}

.hc-checkbox-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.hc-checkbox-text a:hover {
    color: #2563eb;
}

.hc-price-display {
    padding: 15px;
    background: #374151;
    border-radius: 6px;
    font-size: 1.125rem;
    color: #f9fafb;
}

.hc-price-display strong {
    color: #059669;
}

/* Camp Cards */
.hc-camps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Camp Card Checkbox */
.hc-camp-card-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.hc-camp-card-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.hc-camp-card {
    position: relative;
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.hc-camp-card:hover:not(.hc-camp-card-disabled) {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.hc-camp-card.hc-camp-card-selected {
    border-color: #3b82f6;
    background: #1e3a5f;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.hc-camp-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #1f2937;
}

.hc-camp-card-status-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
}

/* Status Farben */
.hc-camp-status-available .hc-camp-card-status-indicator {
    background: #10b981; /* Grün - viele Plätze */
}

.hc-camp-status-medium .hc-camp-card-status-indicator {
    background: #f59e0b; /* Orange - mittlere Plätze */
}

.hc-camp-status-low .hc-camp-card-status-indicator {
    background: #ef4444; /* Rot - wenige Plätze */
}

.hc-camp-status-full .hc-camp-card-status-indicator {
    background: #6b7280; /* Grau - ausgebucht */
}

.hc-camp-status-neutral .hc-camp-card-status-indicator {
    background: #9ca3af; /* Neutral - keine Kapazität */
}

.hc-camp-card-content {
    padding-top: 4px;
}

.hc-camp-card-title {
    font-size: 1rem !important;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #f9fafb;
}

.hc-camp-card-location {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.hc-camp-card-dates {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 12px;
}

.hc-camp-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.hc-camp-card-status {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.hc-camp-status-available .hc-camp-card-status {
    background: #d1fae5;
    color: #065f46;
}

.hc-camp-status-medium .hc-camp-card-status {
    background: #fef3c7;
    color: #92400e;
}

.hc-camp-status-low .hc-camp-card-status {
    background: #fee2e2;
    color: #991b1b;
}

.hc-camp-status-full .hc-camp-card-status {
    background: #f3f4f6;
    color: #6b7280;
}

.hc-camp-status-neutral .hc-camp-card-status {
    background: #f3f4f6;
    color: #4b5563;
}

.hc-form-messages {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.hc-form-messages.hc-message-success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.hc-form-messages.hc-message-error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.hc-form-messages ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.hc-form-messages li {
    margin: 5px 0;
}

.hc-form-actions {
    margin-top: 30px;
    text-align: center;
}

.hc-button {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.hc-button-primary {
    background: #3b82f6;
    color: #fff;
}

.hc-button-primary:hover:not(:disabled) {
    background: #2563eb;
}

.hc-button-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.hc-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.hc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: hc-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes hc-spin {
    to { transform: rotate(360deg); }
}

/* Form submitting state */
.hc-form-submitting {
    opacity: 0.6;
    pointer-events: none;
}

/* Confirmation box */
.hc-confirmation-box {
    padding: 30px !important;
    text-align: center;
    background: #d1fae5 !important;
    border: 2px solid #10b981 !important;
}

.hc-confirmation-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #065f46;
    margin: 0 0 15px 0;
}

.hc-confirmation-content p {
    font-size: 1rem;
    color: #065f46;
    margin: 10px 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hc-registration-form-wrapper {
        padding: 0;
    }

    .hc-registration-form {
        padding: 15px;
        border-radius: 0;
    }

    .hc-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hc-form-section-title {
        font-size: 0.8rem !important;
    }

    .hc-form-group label {
        font-size: 0.75rem;
    }

    .hc-form-group input[type="text"],
    .hc-form-group input[type="email"],
    .hc-form-group input[type="tel"],
    .hc-form-group input[type="date"],
    .hc-form-group input[type="number"],
    .hc-form-group select,
    .hc-form-group textarea {
        padding: 6px 8px;
        font-size: 1rem;
    }

    .hc-checkbox-text {
        font-size: 0.75rem;
    }

    .hc-price-display {
        font-size: 0.9rem;
    }

    .hc-camps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hc-camp-card-title {
        font-size: 0.85rem !important;
    }

    .hc-camp-card-location {
        font-size: 0.75rem;
    }

    .hc-camp-card-dates {
        font-size: 0.75rem;
    }

    .hc-camp-card-price {
        font-size: 1rem;
    }

    .hc-camp-card-status {
        font-size: 0.75rem;
    }

    .hc-confirmation-content h3 {
        font-size: 0.9rem;
    }

    .hc-confirmation-content p {
        font-size: 0.875rem;
    }

    .hc-button {
        font-size: 0.9rem;
    }
}


