/* Modern, responsive design for start.php */
.start-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: hidden;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    box-sizing: border-box;
}
h1, h2, h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}
/* Uniform Input Styles - Exact Match */
form label {
    display: block;
    margin: 25px 0 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form select,
.stripe-field {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    height: 50px; /* Uniform height */
}
/* Make select arrows match */
form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233497db'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}
/* Inline Checkbox & Radio Labels */
.checkbox-label,
.payment-option-label {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 16px;
    cursor: pointer;
    flex-wrap: wrap;
}
.checkbox-label input[type="checkbox"],
.payment-option-label input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    accent-color: #3498db;
    cursor: pointer;
    flex-shrink: 0;
}
/* Payment Options */
.payment-options {
    margin: 30px 0;
}
.payment-option-label {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s;
    margin-bottom: 15px;
}
.payment-option-label:hover {
    border-color: #3498db;
    background: #eef5fb;
}
/* Plan Selection */
.plans-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.plan-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}
.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.plan-card.selected {
    border-color: #3498db;
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.4);
    transform: translateY(-10px) scale(1.03);
}
.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}
.plan-header input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.price {
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
}
.price span {
    font-size: 18px;
    color: #7f8c8d;
}
.features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}
.features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.features li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
}
/* Split Fields */
.split-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
/* Buttons */
.form-actions {
    text-align: center;
    margin: 40px 0;
}
.btn-primary {
    background: #3498db;
    color: white;
    padding: 16px 50px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 250px;
    position: relative;
}
.btn-primary:hover {
    background: #2980b9;
}
.btn-primary.loading {
    background: #95a5a6;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Select Text / Mobile Button */
.select-text {
    margin-top: 30px;
    font-size: 18px;
    color: #95a5a6;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.3s;
}
/* Payment Summary */
.payment-summary {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
}
.payment-summary h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #2c3e50;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}
.summary-item:last-child {
    border-bottom: none;
}
.summary-item.total {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 10px;
    font-size: 22px;
    font-weight: bold;
}
.agreement-text {
    text-align: center;
    font-size: 15px;
    color: #7f8c8d;
    margin: 30px 0;
    line-height: 1.6;
}
.agreement-text a {
    color: #3498db;
    text-decoration: underline;
}
/* Error Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}
.close:hover {
    background: #c0392b;
}
#modal-errors p {
    color: #e74c3c;
    margin: 12px 0;
    font-size: 16px;
    text-align: center;
}
/* Card Errors */
#card-errors {
    color: #e74c3c;
    margin: 15px 0;
    font-size: 15px;
    text-align: center;
}

/* ==================== RESPONSIVE - OPTIMIZED & PROFESSIONAL MOBILE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin: 8px auto;
        max-width: 100%;
        border-radius: 10px;
    }
    .plans-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .plan-card {
        min-width: 100%;
        max-width: 100%;
        padding: 25px 20px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    }
    .plan-card:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .plan-card.selected {
        transform: translateY(-4px) scale(1.02);
    }
    /* Hide bottom Next button on plan step for mobile only */
    .plan-step .form-actions {
        display: none !important;
    }
    .select-text {
        background-color: #3498db;
        color: white;
        padding: 18px 20px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 18px;
        cursor: pointer;
        margin: 25px 0 10px;
        display: block;
    }
    .split-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .btn-primary {
        width: 100%;
        padding: 18px;
        min-width: auto;
        font-size: 18px;
    }
    h1, h2, h3 {
        font-size: 1.55em;
    }
    form label {
        margin: 20px 0 8px;
        font-size: 15.5px;
    }
    .payment-option-label {
        padding: 12px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 18px 12px;
        margin: 5px;
    }
    .plan-card {
        padding: 22px 18px;
    }
}