/**
 * CYB Mint - Stylesheet
 * Design moderno e responsive per il sistema di vendita CYB
 */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #228B22 0%, #006400 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 45px 0 30px 0;
    border-bottom: 3px solid #2E8B57;
    position: relative;
}

.header-top {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 15px;
    text-decoration: none;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 12px;
    min-height: auto;
}

.lang-link:hover {
    background: #228B22;
    color: white;
    border-color: #228B22;
    transform: translateY(-1px);
}

.lang-link.active {
    background: #2E8B57;
    color: white;
    border-color: #2E8B57;
    font-weight: bold;
}

.lang-link span {
    display: none;
}

@media (min-width: 768px) {
    .lang-link span {
        display: inline;
    }
}

header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    font-weight: 300;
}

/* Sections */
.form-section, .confirmation-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section h2, .confirmation-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #2E8B57;
    padding-bottom: 10px;
}

/* Forms */
.purchase-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #228B22 0%, #006400 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-paypal {
    background: #0070ba;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-paypal:hover {
    background: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 112, 186, 0.4);
}

.btn-paypal img {
    height: 24px;
}

/* Purchase Summary */
.purchase-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #2E8B57;
}

.purchase-summary h3 {
    margin-bottom: 20px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #2E8B57;
}

.highlight {
    color: #2E8B57;
    font-weight: bold;
}

.price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.uuid {
    font-family: monospace;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Payment Buttons */
.payment-buttons {
    text-align: center;
    margin-top: 30px;
}

/* Info Section */
.info-section {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #2196f3;
}

.info-section h3 {
    color: #1565c0;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(33, 101, 192, 0.1);
}

.info-section li:last-child {
    border-bottom: none;
}

/* Messages */
.error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

.error-box h3 {
    margin-bottom: 10px;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.success-box {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

/* Cost Preview */
.cost-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: bold;
    color: #28a745;
}

/* Success Page */
.success-page, .cancel-page {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.cancel-icon {
    font-size: 80px;
    color: #dc3545;
    margin-bottom: 20px;
}

.transaction-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.transaction-id {
    font-family: monospace;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.detail-row:last-child {
    border-bottom: none;
}

.success-message, .help-section, .alternative-payment {
    margin: 30px 0;
    text-align: left;
}

.success-message h3, .help-section h3, .alternative-payment h3 {
    color: #333;
    margin-bottom: 15px;
}

.success-message ul, .help-section ul, .alternative-payment ul {
    margin: 15px 0;
    padding-left: 20px;
}

.next-steps {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin: 30px 0;
}

.action-buttons {
    margin: 40px 0 20px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    color: #666;
    margin-top: 40px;
}

footer small {
    display: block;
    margin-top: 10px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2em;
        flex-direction: column;
        gap: 10px;
    }

    .form-section, .confirmation-section {
        padding: 20px;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .btn-paypal {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .payment-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}