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

:root {
    --primary-color: #0066cc;
    --secondary-color: #1e88e5;
    --accent-color: #ff6b35;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
    --light-gray: #f8f9fa;
    --border-radius: 10px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.hero-section {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e55a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Coverage Section */
.coverage-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.coverage-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.coverage-text h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.coverage-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.coverage-text li {
    padding: 8px 0;
    font-size: 1.1rem;
}

.map-placeholder {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-size: 3rem;
    color: var(--gray);
}

.map-placeholder p {
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Registration Form Styles */
.header {
    background: var(--gradient);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.header .logo i {
    font-size: 2rem;
}

.header .logo h1 {
    font-size: 2rem;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 0 20px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #e0e6ed, #e0e6ed);
    border-radius: 2px;
    z-index: 0;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    z-index: 1;
    transition: width 0.8s ease;
    width: 0%;
}

.progress-bar.step-2::after { width: 33.33%; }
.progress-bar.step-3::after { width: 66.66%; }
.progress-bar.step-4::after { width: 100%; }

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 150px;
    color: var(--gray);
    transition: all 0.4s ease;
    z-index: 2;
}

.progress-step.active {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.progress-step.completed {
    color: var(--success-color);
}

.progress-step i {
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 3px solid #e0e6ed;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-step.active i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,102,204,0.4);
}

.progress-step.completed i {
    background: linear-gradient(135deg, var(--success-color), #45a049);
    color: var(--white);
    border-color: var(--success-color);
    box-shadow: 0 6px 20px rgba(76,175,80,0.3);
}

.progress-step span {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.progress-step.active span {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: var(--gray);
    z-index: -1;
}

.progress-step.active:not(:last-child)::after {
    background: var(--primary-color);
}

/* Form Steps */
.form-step {
    display: none;
}

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

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: var(--gray);
    margin-bottom: 30px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Photo Groups */
.photo-group {
    border: 3px dashed #e0e6ed;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.photo-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,102,204,0.1), transparent);
    transition: left 0.6s ease;
}

.photo-group:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.15);
}

.photo-group:hover::before {
    left: 100%;
}

.photo-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-camera,
.btn-file {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-camera::before,
.btn-file::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-camera:hover::before,
.btn-file:hover::before {
    width: 300px;
    height: 300px;
}

.btn-camera {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.btn-camera:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.4);
}

.btn-file {
    background: linear-gradient(135deg, var(--accent-color), #e55a30);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.btn-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.photo-controls input[type="file"] {
    display: none;
}

.photo-preview {
    min-height: 150px;
    border: 3px dashed #ddd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,102,204,0.1);
}

.photo-preview.has-photo {
    border-color: var(--success-color);
    background: linear-gradient(145deg, #e8f5e8, #f0f8f0);
    border-style: solid;
}

.photo-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-preview img:hover {
    transform: scale(1.02);
}

.photo-preview .placeholder {
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
}

.photo-preview .placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.photo-preview .placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.photo-preview:hover .placeholder {
    color: var(--primary-color);
}

.photo-preview:hover .placeholder i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Loading y Success indicators */
.loading-spinner {
    text-align: center;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.success-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(76,175,80,0.3);
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes stepActivate {
    0% { 
        transform: scale(1) translateY(0); 
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    50% { 
        transform: scale(1.15) translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,102,204,0.3);
    }
    100% { 
        transform: scale(1.1) translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,102,204,0.4);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.error-placeholder {
    text-align: center;
    color: var(--error-color);
    padding: 20px;
}

.error-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-placeholder p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Drag and Drop Enhancement */
.photo-group.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #e3f2fd, #f0f8ff);
    transform: scale(1.02);
}

.photo-preview.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, #e3f2fd, #f0f8ff);
}


/* Reference Sections */
.reference-section {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.reference-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Terms and Conditions */
.terms-box {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.terms-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.terms-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    transform: scale(1.2);
}

.checkbox-group label {
    flex: 1;
    margin-bottom: 0;
}

/* Signature */
.signature-group {
    margin-bottom: 30px;
}

.signature-help {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.signature-display {
    border: 2px dashed #e0e6ed;
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 15px;
    background: var(--light-gray);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-placeholder {
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.signature-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.signature-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

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

.btn-signature {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-signature:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.btn-clear {
    background: var(--error-color);
    color: var(--white);
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #d32f2f;
}

/* Signature Modal */
.signature-modal-content {
    max-width: 700px;
    width: 90vw;
}

.signature-instructions {
    text-align: center;
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1rem;
}

.signature-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#signatureCanvas {
    border: 2px solid #e0e6ed;
    border-radius: var(--border-radius);
    cursor: crosshair;
    background: var(--white);
    touch-action: none;
    max-width: 100%;
    height: auto;
}

.signature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    pointer-events: none;
    background: rgba(248,249,250,0.8);
    border-radius: var(--border-radius);
}

.signature-overlay.hidden {
    display: none;
}

.signature-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-save-signature {
    background: var(--success-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-save-signature:hover {
    background: #45a049;
}

.btn-cancel {
    background: var(--gray);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

/* Location */
.location-group {
    text-align: center;
}

.btn-location {
    background: var(--success-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background: #45a049;
}

.btn-location:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.location-result {
    margin-top: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    display: none;
}

.location-result.show {
    display: block;
}

.location-success {
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-error {
    color: var(--error-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e6ed;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: var(--gray);
    color: var(--white);
}

.btn-prev:hover {
    background: #7f8c8d;
}

.btn-next,
.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--secondary-color);
}

.btn-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

/* Contract Link Styles */
.contract-link-container {
    margin: 20px 0;
    text-align: center;
}

.btn-contract {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-contract:hover {
    background: #e55722;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-contract i {
    margin-right: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
}

.modal-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray);
}

.close:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

#videoElement {
    max-width: 100%;
    max-height: 50vh;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    object-fit: contain;
    background: #000;
}

.camera-error {
    color: var(--error-color);
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e6ed;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-take-photo {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-take-photo:hover {
    background: var(--secondary-color);
}

.btn-take-photo:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.btn-cancel {
    background: var(--gray);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

/* Success Modal */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-download {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #e55a30;
}

/* Admin Styles */
.admin-access {
    margin-top: 20px;
    text-align: center;
}

.admin-access a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.admin-access a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .coverage-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .registration-form {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-step {
        max-width: 120px;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .photo-controls {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-submit {
        margin-left: 0;
    }
    
    .signature-modal-content {
        width: 95vw;
        max-width: 95vw;
    }
    
    #signatureCanvas {
        width: 100% !important;
        height: 200px !important;
        max-width: 100%;
    }
    
    .signature-display {
        padding: 30px 15px;
        min-height: 100px;
    }
    
    .signature-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-signature {
        width: 100%;
        justify-content: center;
    }
    
    .signature-canvas-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

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

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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