/* Giftcard Form Styles - Based on Membership Form Design */

.giftcard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #ffd700;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    color: #312E0A;
}

.giftcard-header-info {
    flex: 1;
    padding-right: 30px;
}

.giftcard-header-image {
    flex: 0 0 auto;
}

.giftcard-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.giftcard-header-image img:hover {
    transform: scale(1.05);
}

.giftcard-header h1 {
    color: #e31818;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: bold;
}

.giftcard-header .subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.price-tag {
    background-color: #e31818;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
}

.giftcard-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Form Introduction */
.form-intro {
    margin-bottom: 30px;
}

.form-intro h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.info-box {
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    padding: 20px;
    border-radius: 8px;
    gap: 20px;
}

.info-icon {
    flex-shrink: 0;
    color: #ffd700;
    font-size: 2rem;
}

.info-content {
    flex: 1;
    color: white;
}

.info-content p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ffd700;
}

.info-note i {
    font-size: 1rem;
}

.price-highlight {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Alert Styles */
.alert {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(227, 24, 24, 0.1);
    color: #e31818;
    border-left-color: #e31818;
}

.alert h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert h4 i {
    margin-right: 10px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Content Sections */
.content-section {
    background-color: #111E0A;
    padding: 20px 0;
    margin-bottom: 15px;
    border-radius: 20px;
    color: white;
}

.content-section h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-left: 4px solid #e31818;
    padding-left: 15px;
}

.content-section h2 i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #e31818;
}

/* Farbige Kategorien für Abschnitte - Einheitliche Farbe */
.section-color-1,
.section-color-2,
.section-color-3 {
    background-color: rgba(176, 196, 222, 0.1);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 0;
}

/* Member Login Section */
.member-login {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-info {
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
}

.login-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.login-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.login-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #312E0A;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.member-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.content-section .form-group {
    margin-bottom: 15px;
}

.content-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.content-section .form-group input,
.content-section .form-group select,
.content-section .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    color: #312E0A;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* Ensure selects have consistent height on macOS */
.content-section .form-group select {
    min-height: 45px;
    height: 45px;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23312E0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Fix for iOS Date Input */
.content-section .form-group input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 45px;
    /* Ensure consistent height */
    background-color: white;
    color: #312E0A;
    position: relative;
    /* For pseudo-element positioning */
}

/* Force correct color for native date text (fixes yellow text issue) */
.content-section .form-group input[type="date"]::-webkit-datetime-edit {
    color: #312E0A;
}

/* Placeholder for iOS Date Input (Touch devices only) */
@media (pointer: coarse) {
    .content-section .form-group input[type="date"]:not(.has-value)::before {
        content: attr(placeholder);
        color: #999;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        font-size: 1rem;
        line-height: 1;
        width: calc(100% - 30px);
        /* Prevent overflow */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.content-section .form-group input:focus,
.content-section .form-group select:focus,
.content-section .form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.content-section .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.content-section .form-group.required label::after {
    content: ' *';
    color: #e31818;
}

.error-message {
    color: #e31818;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.form-help {
    color: #ffd700;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Payment Info */
.payment-info {
    text-align: center;
}

.payment-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.banking-info {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.banking-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffd700;
}

.banking-info p {
    margin: 8px 0;
    color: white;
}

.payment-note {
    color: #ffd700;
    font-size: 0.9rem;
    margin-top: 20px;
    text-align: center;
}

/* Checkbox Styles */
.content-section .checkbox-group {
    margin-bottom: 20px;
}

.content-section .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    color: white;
    position: relative;
}

.content-section .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.content-section .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.content-section .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #ffd700;
    border-color: #ffd700;
}

.content-section .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #312E0A;
    font-weight: bold;
    font-size: 14px;
}

.content-section .checkbox-label a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.content-section .checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Submit */
.form-submit {
    text-align: center;
    padding: 30px 0;
}

.form-submit .cta-button-menu {
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-submit .cta-button-menu:hover {
    transform: translateY(-3px);
}

.form-submit .cta-button-menu:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-submit .cta-button-menu i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.submit-info {
    color: #ffd700;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-info i {
    margin-right: 8px;
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .giftcard-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .giftcard-header-info {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .giftcard-header h1 {
        font-size: 2rem;
    }

    .form-intro h2 {
        font-size: 1.5rem;
    }
    
    .info-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-icon {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 15px 0;
        margin-bottom: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-color-1,
    .section-color-2,
    .section-color-3 {
        padding: 12px;
    }

    .login-form {
        flex-direction: column;
        align-items: stretch;
    }

    .login-form .form-group {
        margin-bottom: 15px;
    }

    .form-submit .cta-button-menu {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .submit-info {
        flex-direction: column;
        text-align: center;
    }

    .submit-info i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .giftcard-header h1 {
        font-size: 1.8rem;
    }

    .form-intro h2 {
        font-size: 1.3rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
    }
}

/* Member Login Section - wie im Event-Formular */
.member-login-section {
    margin-bottom: 20px;
}

.member-login-form {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    padding: 20px;
    border-radius: 8px;
}

.member-code-input {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.member-code-input input {
    flex: 1;
    max-width: 200px;
    padding: 12px 15px;
    border: 2px solid #ffd700;
    border-radius: 6px;
    background-color: rgba(17, 30, 10, 0.8);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.member-code-input input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.login-btn {
    background: linear-gradient(135deg, #60b347 0%, #4a8f3a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #4a8f3a 0%, #3d7530 100%);
    transform: translateY(-2px);
}

.login-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.member-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid;
}

.member-status.success {
    background-color: rgba(96, 179, 71, 0.1);
    border-left-color: #60b347;
    color: #60b347;
}

.member-status.error {
    background-color: rgba(227, 24, 24, 0.1);
    border-left-color: #e31818;
    color: #fff;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.form-hint {
    color: #ffd700;
    font-size: 0.9rem;
    font-style: italic;
}

/* Payment Section - Enhanced */
.payment-info {
    color: white;
}

.payment-info .form-group {
    margin-bottom: 25px;
}

.payment-info select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ffd700;
    border-radius: 6px;
    background-color: rgba(17, 30, 10, 0.8);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.payment-info select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.payment-info select option {
    background-color: #111E0A;
    color: white;
}

.payment-amount {
    background-color: rgba(96, 179, 71, 0.1);
    border-left: 4px solid #60b347;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.payment-amount p {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.payment-amount strong {
    color: #60b347;
    font-size: 1.3rem;
}

.banking-info {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.banking-info h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banking-info p {
    margin-bottom: 8px;
    color: white;
    font-size: 1rem;
}

.banking-info p:last-child {
    margin-bottom: 0;
}

.paypal-info {
    background-color: rgba(0, 123, 191, 0.1);
    border-left: 4px solid #007bbf;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.paypal-info h4 {
    color: #007bbf;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paypal-info p {
    margin-bottom: 10px;
    color: white;
    font-size: 1rem;
}

.paypal-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.paypal-info li {
    color: white;
    margin-bottom: 5px;
}

.payment-note {
    margin-top: 20px;
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .member-code-input {
        flex-direction: column;
        align-items: stretch;
    }

    .member-code-input input {
        max-width: none;
    }
}

/* Turnstile Widget Zentrierung */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 15px auto;
}

/* Label über Turnstile Widget zentrieren */
.form-group:has(.cf-turnstile) label {
    text-align: center;
    display: block;
}

.text-uppercase {
    text-transform: uppercase;
}

.hidden {
    display: none;
}