/**
 * Interlude Gift Card Styles
 * Matches existing calendar booking style - Dark Theme
 */

.interlude-gift-card-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(30, 30, 30, 0.92) !important;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    font-family: 'Arial', sans-serif;
    color: #fff !important;
}

/* Responsive wrapper for mobile */
@media (max-width: 768px) {
    .interlude-gift-card-wrapper {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .interlude-gift-card-wrapper {
        margin: 15px;
        padding: 16px;
        border-radius: 8px;
    }
}

/* Section Headers */
.gift-card-heading {
    font-size: clamp(1.75rem, 1.345rem + 1.353vi, 2.5rem) !important;
    font-weight: 500 !important;
    color: #ffc20e !important;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gift-card-section {
    margin-bottom: 30px;
}

/* Dividers */
.gift-card-divider {
    border-top: 2px solid #ffc20e !important;
    margin: 20px 0;
}

/* Ticket Rows */
.gift-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.gift-ticket-row-last {
    border-bottom: none !important;
}

.gift-ticket-info {
    flex: 1;
}

.gift-ticket-label {
    display: block;
    font-weight: 600;
    color: #fff !important;
    font-size: 16px;
    text-align: left !important;
}

.gift-ticket-price-label {
    display: block;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    margin-top: 5px;
    text-align: left !important;
}

.gift-ticket-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.gift-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ffc20e !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffc20e !important;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.gift-qty-btn:hover {
    background: linear-gradient(135deg, #ffc20e 0%, #e6af0d 100%) !important;
    color: #000 !important;
    border-color: #ffc20e !important;
}

.gift-qty-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #e6af0d 0%, #cc9b0c 100%) !important;
}

.gift-qty-input {
    width: 60px;
    height: 40px;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 8px 0 !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.gift-ticket-subtotal {
    font-size: 18px;
    font-weight: bold;
    color: #ffc20e !important;
    min-width: 80px;
    text-align: right;
}

/* Total Row */
.gift-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.gift-total-label {
    font-size: 20px;
    font-weight: bold;
    color: #fff !important;
}

.gift-total-amount {
    font-size: 24px;
    font-weight: bold;
    color: #ffc20e !important;
}

/* Form Groups */
.gift-form-group {
    margin-bottom: 20px;
}

.gift-form-group label {
    display: block;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: left !important;
}

.gift-input,
.gift-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.gift-input::placeholder,
.gift-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.gift-input:focus,
.gift-textarea:focus {
    outline: none;
    border-color: #ffc20e !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.gift-textarea {
    resize: vertical;
    min-height: 80px;
}

.gift-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
}

/* Error Message */
.gift-error-message {
    background: rgba(244, 67, 54, 0.95) !important;
    color: #fff !important;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(244, 67, 54, 0.5) !important;
}

/* Submit Button */
.gift-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffc20e 0%, #e6af0d 100%) !important;
    color: #000 !important;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center !important;
}

.gift-submit-btn:hover {
    background: linear-gradient(135deg, #e6af0d 0%, #cc9b0c 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 194, 14, 0.4);
}

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

.gift-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
    transform: none;
}

/* Responsive button for mobile */
@media (max-width: 768px) {
    .gift-submit-btn {
        font-size: 16px;
        padding: 16px 14px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .gift-submit-btn {
        font-size: 14px;
        padding: 14px 12px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 380px) {
    .gift-submit-btn {
        font-size: 13px;
        padding: 12px 10px;
        letter-spacing: 0.2px;
    }
}

.gift-submit-btn .btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Loading State */
.gift-submit-btn.loading {
    position: relative;
    color: transparent;
}

.gift-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .interlude-gift-card-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }

    .gift-card-heading {
        font-size: 16px;
    }

    .gift-ticket-row {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .gift-ticket-info {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .gift-ticket-qty {
        margin: 0 auto 0 0;
    }

    .gift-ticket-subtotal {
        flex: 0 0 100%;
        text-align: left;
        margin-top: 10px;
        font-size: 16px;
    }

    .gift-total-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .gift-total-label,
    .gift-total-amount {
        font-size: 18px;
    }

    .gift-submit-btn {
        font-size: 16px;
        padding: 15px;
    }

    .gift-qty-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .gift-qty-input {
        width: 50px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .interlude-gift-card-wrapper {
        padding: 15px;
    }

    .gift-ticket-label {
        font-size: 14px;
    }

    .gift-ticket-price-label {
        font-size: 12px;
    }
}

/* Character counter styling */
.gift-character-counter {
    margin-top: 5px;
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6) !important;
}

.gift-character-counter span {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.gift-character-counter .at-limit {
    color: #ffc20e !important;
    font-weight: 600;
    background: rgba(255, 194, 14, 0.1) !important;
}

.gift-character-counter .over-limit {
    color: #ff4444 !important;
    font-weight: 600;
    background: rgba(255, 68, 68, 0.1) !important;
}
