/* gift-card-tracker.css */

/* Button styles - utilise les classes du thème rz-button rz-button-accent */
.gift-card-interest-btn,
.reservation-interest-btn,
.reservation-redirect-btn {
    cursor: pointer;
    border: none;
    text-decoration: none;
}

/* Fix layout when shortcode is inside rz-action-info wrapper */
.rz-action-info:has(.gift-card-interest-btn),
.rz-action-info:has(.reservation-interest-btn),
.rz-action-info:has(.reservation-redirect-btn) {
    display: block;
    font-size: 0;
    line-height: 0;
}

.rz-action-info:has(.gift-card-interest-btn) .rz-action-footer,
.rz-action-info:has(.reservation-interest-btn) .rz-action-footer,
.rz-action-info:has(.reservation-redirect-btn) .rz-action-footer {
    font-size: 14px;
    line-height: 1.5;
}

/* Hide empty/whitespace p tags and spans created by the editor around the shortcode */
.rz-action-info:has(.gift-card-interest-btn) > p,
.rz-action-info:has(.reservation-interest-btn) > p,
.rz-action-info:has(.reservation-redirect-btn) > p {
    display: none;
}

.rz-action-info:has(.gift-card-interest-btn) > .rz-action-footer,
.rz-action-info:has(.reservation-interest-btn) > .rz-action-footer,
.rz-action-info:has(.reservation-redirect-btn) > .rz-action-footer {
    display: block;
}

/* Remove extra margin/padding from rz-action-footer when inside action-info */
.rz-action-info .rz-action-footer {
    margin: 0;
    padding: 0;
}

/* Modal overlay */
.gct-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal content */
.gct-modal-content {
    background-color: #fff;
    margin: 10vh auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: gctModalSlideIn 0.25s ease-out;
    position: relative;
}

@keyframes gctModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.gct-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: #6b7280;
    z-index: 10;
}

.gct-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Modal body */
.gct-modal-body {
    padding: 48px 32px 32px;
    text-align: center;
}

/* Icon container */
.gct-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(7, 141, 238, 0.1) 0%, rgba(7, 141, 238, 0.05) 100%);
    background: linear-gradient(135deg, rgba(var(--main-rgb, 7, 141, 238), 0.1) 0%, rgba(var(--main-rgb, 7, 141, 238), 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main, #078dee);
}

.gct-icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10b981;
}

.gct-icon-reservation {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #8b5cf6;
}

.gct-icon-sad {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #ef4444;
}

.gct-icon-sad i {
    font-size: 42px;
}

.gct-icon-claim {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3b82f6;
}

.gct-icon-claim i {
    font-size: 38px;
}

.gct-icon-error {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #f59e0b;
}

.gct-icon-error i {
    font-size: 38px;
}

/* Typography */
.gct-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}

.gct-subtitle {
    font-size: 16px;
    color: #374151;
    margin: 0 0 8px;
    line-height: 1.5;
}

.gct-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Steps */
.gct-step {
    display: none;
}

.gct-step.active {
    display: block;
    animation: gctFadeIn 0.2s ease-in;
}

@keyframes gctFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons container */
.gct-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Buttons */
.gct-btn {
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gct-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.gct-btn-secondary:hover {
    background: #e5e7eb;
}

/* Full width button */
.gct-btn-full {
    width: 100%;
}

/* Newsletter form */
#gct-newsletter-form,
#res-newsletter-form {
    margin-top: 24px;
}

#gct-email,
#res-email {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
    box-sizing: border-box;
}

#gct-email:focus,
#res-email:focus {
    outline: none;
    border-color: var(--main, #078dee);
    box-shadow: 0 0 0 3px rgba(7, 141, 238, 0.1);
    background: #fff;
}

#gct-email::placeholder,
#res-email::placeholder {
    color: #9ca3af;
}


/* Owner CTA section */
.gct-owner-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.gct-owner-text {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 6px;
}

.gct-owner-link {
    font-size: 13px;
    color: var(--main, #078dee);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gct-owner-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Success state */
.gct-success {
    padding: 16px 0;
}

.gct-success .gct-title {
    color: #10b981;
}

.gct-success .gct-text {
    margin-bottom: 0;
}

/* Large modal for claim form */
.gct-modal-large {
    max-width: 520px;
}

/* Form styles */
.gct-form {
    text-align: left;
    margin-top: 24px;
}

.gct-form-row {
    display: flex;
    gap: 16px;
}

.gct-form-group {
    flex: 1;
    margin-bottom: 16px;
}

.gct-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.gct-form-group label .required {
    color: #ef4444;
}

.gct-form-group input,
.gct-form-group textarea,
.gct-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
    box-sizing: border-box;
    font-family: inherit;
}

.gct-form-group input:focus,
.gct-form-group textarea:focus,
.gct-form-group select:focus {
    outline: none;
    border-color: var(--main, #078dee);
    box-shadow: 0 0 0 3px rgba(7, 141, 238, 0.1);
    background: #fff;
}

.gct-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.gct-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Honeypot - hidden from users */
.gct-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Error report link */
.brydge-sidebar-error {
    text-align: center;
    margin-top: 16px;
}

.brydge-sidebar-error-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.brydge-sidebar-error-link:hover {
    color: #374151;
}

.brydge-sidebar-error-link i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .gct-modal-content {
        margin: 5vh auto;
        width: 94%;
        border-radius: 12px;
    }

    .gct-modal-body {
        padding: 40px 24px 24px;
    }

    .gct-buttons {
        flex-direction: column;
    }

    .gct-btn {
        width: 100%;
    }

    .gct-title {
        font-size: 20px;
    }

    .gct-form-row {
        flex-direction: column;
        gap: 0;
    }

    .gct-modal-large {
        max-width: 94%;
    }
}
