* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    padding: 40px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

select, input[type="text"], input[type="date"], textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.divination-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.divination-option {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.divination-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.divination-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.divination-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.divination-label {
    font-size: 1.1em;
    font-weight: 600;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.zodiac-option {
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    font-size: 0.9em;
}

.zodiac-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.zodiac-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.zodiac-option input {
    display: none;
}

.tarot-spread-options, .classic-card-layout-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.tarot-spread-option, .classic-card-layout-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.tarot-spread-option:hover, .classic-card-layout-option:hover {
    border-color: #667eea;
}

.tarot-spread-option.selected, .classic-card-layout-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.tarot-spread-option input, .classic-card-layout-option input {
    display: none;
}

.language-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.language-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.language-btn:hover {
    border-color: #667eea;
}

.language-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    font-size: 0.95em;
    cursor: pointer;
    user-select: none;
}

.terms-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.checkboxes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.checkboxes-title {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}

.accept-all-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.accept-all-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.checkboxes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
}

.checkbox-disclaimer {
    padding: 15px;
    background: #fff5f5;
    border-left: 4px solid #ff416c;
    border-radius: 5px;
    margin-top: 10px;
}

.price-tag {
    text-align: center;
    color: #667eea;
    font-size: 1.5em;
    font-weight: 700;
    margin: 20px 0;
}

.promo-badge {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
    display: inline-block;
    margin: 10px auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 65, 108, 0);
    }
}

.price-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-radius: 15px;
    border: 2px solid #ff416c;
}

.regular-price {
    color: #999;
    font-size: 1.2em;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.promo-price {
    color: #667eea;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.lowest-price-info {
    color: #666;
    font-size: 0.9em;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #ff416c;
    text-align: left;
    margin-top: 15px;
}

.price {
    font-size: 2.8em;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 40px;
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.error-message {
    color: #e74c3c;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.error-code-box {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.error-code-text {
    color: #333;
    margin: 0;
    font-weight: 600;
    font-size: 1.1em;
}

.error-code-value {
    color: #dc3545;
    font-family: monospace;
    font-size: 1.3em;
}

.refund-message {
    color: #666;
    margin-top: 15px;
}

.refund-amount {
    color: #28a745;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.refund-error {
    color: #dc3545;
    margin-top: 15px;
    font-size: 1em;
}

.refund-info {
    color: #666;
    margin-top: 20px;
    font-size: 0.9em;
}

.retry-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    display: inline-block;
}

.result-container {
    text-align: center;
}

.divination-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    text-align: left;
}

.divination-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.divination-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.zodiac-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.new-divination-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .divination-types {
        grid-template-columns: 1fr;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zodiac-option {
        padding: 12px 8px;
        font-size: 0.8em;
    }

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

    .checkbox-label {
        font-size: 0.85em;
    }

    .checkboxes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .accept-all-btn {
        width: 100%;
    }
}

.purchase-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    font-size: 0.95em;
    font-weight: 500;
    z-index: 1000;
    max-width: 300px;
}

.purchase-notification.pulse {
    animation: pulseNotification 0.5s ease;
}

@keyframes pulseNotification {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    .purchase-notification {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }
}

.flying-emoji {
    position: fixed;
    font-size: 2em;
    z-index: 1001;
    pointer-events: none;
    animation: flyUp 3s ease-out forwards;
}

@keyframes flyUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-150px) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.5) rotate(360deg);
    }
}
