/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Card Styles */
.signup-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after {
    background: #2d5a27;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background: #2d5a27;
    color: white;
}

.progress-step span {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.active span {
    color: #2d5a27;
    font-weight: 600;
}

/* Step Content */
.step-content {
    display: none;
    padding: 30px 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Photo Section */
.photo-section {
    text-align: center;
}

.photo-section h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.photo-section p {
    color: #6c757d;
    margin-bottom: 25px;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#camera, .photo-preview {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f8f9fa;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #2d5a27;
    background: white;
}

.form-group input::placeholder {
    color: #adb5bd;
}

/* Payment Section */
.payment-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-total {
    border-top: 1px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.payment-methods h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #2d5a27;
}

.payment-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .radio-custom {
    border-color: #2d5a27;
    background: #2d5a27;
}

.payment-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.payment-option i {
    margin-right: 10px;
    font-size: 18px;
    color: #6c757d;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-success {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.3);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    font-size: 60px;
    color: #2d5a27;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .signup-card {
        border-radius: 15px;
    }
    
    .header {
        padding: 25px 15px 15px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .step-content {
        padding: 25px 15px;
    }
    
    .camera-container {
        max-width: 250px;
    }
    
    #camera, .photo-preview {
        height: 200px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .navigation {
        padding: 15px;
    }
    
    .card-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 360px) {
    .progress-step span {
        font-size: 10px;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Error States */
.form-group.error input {
    border-color: #dc3545;
}

.form-group.error .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Success States */
.form-group.success input {
    border-color: #28a745;
} 

/* Notification Styles */
.success-notification,
.error-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.success-notification {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.error-notification {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

.success-notification i,
.error-notification i {
    font-size: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Loading spinner for buttons */
.btn i.fa-spin {
    margin-right: 8px;
}

/* Disabled button state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
} 

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.4s ease-out;
}

.loading-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 30px;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    border: 3px solid transparent;
    border-top: 3px solid #2d5a27;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-delay: 0.2s;
    border-top-color: #4a7c59;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    animation-delay: 0.4s;
    border-top-color: #6c757d;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .loading-content {
        padding: 30px;
        margin: 20px;
    }
    
    .loading-content h3 {
        font-size: 18px;
    }
    
    .loading-content p {
        font-size: 13px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .spinner-ring:nth-child(1) {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring:nth-child(2) {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .spinner-ring:nth-child(3) {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }
} 