/* =========================================
   GIFT CARD PAGE STYLES
   ========================================= */

.giftcard-page {
    padding: 150px 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
}

/* Hero Section */
.giftcard-hero {
    text-align: center;
    margin-bottom: 60px;
}

.giftcard-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 15px;
}

.giftcard-hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Container Layout */
.giftcard-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Form Section */
.giftcard-form-section {
    flex: 1;
    min-width: 300px;
}

.form-block {
    margin-bottom: 35px;
}

.form-block h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Amount Buttons */
.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amount-btn {
    padding: 15px 25px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    border: 1px solid #1A1A1A;
    border-radius: 20px 0 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.amount-btn:hover {
    background-color: rgba(160, 82, 45, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.amount-btn.selected {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

/* Custom Amount */
.amount-input-direct {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 120px;
}

.amount-input-direct input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #1A1A1A;
    border-radius: 15px 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-secondary);
    appearance: textfield;
    -moz-appearance: textfield;
    width: 70px;
}

.amount-input-direct input::-webkit-outer-spin-button,
.amount-input-direct input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input-direct input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.amount-input-direct .currency-symbol {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.amount-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* Form Inputs */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--text-color);
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(26, 26, 26, 0.4);
}

.form-group textarea {
    resize: none;
    line-height: 1.5;
}

.char-count {
    position: absolute;
    right: 0;
    bottom: -20px;
    font-size: 12px;
    color: #999;
}

/* Purchase Button */
.btn-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px 0 20px 0;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(160, 82, 45, 0.3);
}

.btn-purchase:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-purchase .price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 700;
}

/* Preview Section */
.giftcard-preview-section {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 130px;
}

.giftcard-preview-section h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Card Preview */
.card-preview {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #6B3E0A 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(160, 82, 45, 0.25);
    position: relative;
    overflow: hidden;
}

.card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-preview-inner {
    position: relative;
    z-index: 1;
}

.card-logo {
    margin-bottom: 25px;
}

.card-logo img {
    width: 80px;
    filter: brightness(0) invert(1);
}

.card-amount {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 60px;
}

.card-message p {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-footer span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.card-footer strong {
    color: #fff;
}

.card-code {
    text-align: center;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.preview-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .giftcard-container {
        flex-direction: column;
    }

    .giftcard-preview-section {
        position: static;
        order: -1;
        margin-bottom: 40px;
    }

    .card-preview {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .giftcard-page {
        padding: 20px 4%;
    }

    .giftcard-hero {
        margin-bottom: 30px;
    }

    .giftcard-form-section {
        min-width: 100%;
        width: 100%;
    }

    .form-block h3 {
        font-size: 16px;
    }

    .card-amount {
        font-size: 42px;
    }

    .card-preview {
        padding: 25px 20px;
    }

    .btn-purchase {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }
}

/* =========================================
   SUCCESS PAGE
   ========================================= */

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.success-container {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--background-color);
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-container h1 {
    font-family: var(--font-primary);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.success-subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.success-details {
    background: rgba(160, 82, 45, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 24px;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-text strong {
    font-size: 14px;
    color: var(--text-color);
}

.detail-text span {
    font-size: 13px;
    color: #888;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn-primary {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px 0 20px 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.success-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(160, 82, 45, 0.3);
}

.success-actions .btn-secondary {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px 0 20px 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.success-actions .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-3px);
}