/* Biscayne Booking - Application Steps Styles */

.biscayne-application-steps {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Progress Steps */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.step-item:hover {
    transform: translateY(-3px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #e5e7eb;
}

.step-item.active .step-number {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.step-item.completed .step-number {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 24px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.step-item.active .step-label {
    color: #007cba;
}

.step-item.completed .step-label {
    color: #10b981;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 20px;
    margin-top: -35px;
    position: relative;
    z-index: 1;
}

.step-item.completed + .step-connector {
    background: #10b981;
}

/* Step Content */
.steps-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.step-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACH Agreement Form */
.ach-agreement-form {
    max-width: 100%;
}

.ach-agreement-form h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

.intro-text {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 2px solid #e5e7eb;
}

.intro-text p {
    margin: 0;
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
}

.inline-input {
    border: none;
    border-bottom: 2px solid #007cba;
    background: transparent;
    padding: 2px 5px;
    font-weight: 700;
    color: #007cba;
    min-width: 150px;
    text-align: center;
}

.inline-input:focus {
    outline: none;
    border-bottom-color: #005a87;
}

.instructions {
    background: #dbeafe;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.instructions strong {
    display: block;
    margin-bottom: 10px;
    color: #1e40af;
    font-size: 16px;
}

.instructions ol {
    margin: 10px 0 0 20px;
    color: #1e40af;
}

.instructions ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.instructions ol ol {
    margin-top: 8px;
    margin-left: 20px;
}

.biscayne-ach-form fieldset {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fff;
}

.biscayne-ach-form legend {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    padding: 0 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group.w-50 {
    flex: 0 0 calc(50% - 10px);
}

.form-group.w-33 {
    flex: 0 0 calc(33.333% - 14px);
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.radio-group input[type="radio"],
.radio-group input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.recurring-options {
    margin-top: 15px;
    padding-left: 25px;
}

.recurring-options .radio-group {
    flex-direction: column;
    gap: 10px;
}

.auth-text {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f59e0b;
    line-height: 1.8;
    color: #78350f;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.form-actions .button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .button-primary {
    background: #007cba;
    color: #fff;
}

.form-actions .button-primary:hover {
    background: #006ba1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.form-actions .button-secondary {
    background: #6b7280;
    color: #fff;
}

.form-actions .button-secondary:hover {
    background: #4b5563;
}

.step-back {
    background: #e5e7eb !important;
    color: #374151 !important;
}

.step-back:hover {
    background: #d1d5db !important;
}

/* Payment Step */
.payment-step {
    text-align: center;
}

.payment-step h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 30px;
}

.payment-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e5e7eb;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
}

.summary-value {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

.payment-notice {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.payment-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 15px;
    line-height: 1.6;
}

/* Request Management Buttons */
.request-management-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.button-small {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button-edit {
    background: #fbbf24;
    color: #78350f;
}

.button-edit:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.button-delete {
    background: #ef4444;
    color: #fff;
}

.button-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Signature Pad */
.signature-pad-wrapper {
    border: 3px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.signature-pad-wrapper::before {
    content: 'Draw your signature here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.signature-pad-wrapper.has-signature::before {
    opacity: 0;
}

.signature-pad {
    display: block;
    width: 100%;
    height: 150px;
    border: 2px dashed #007cba;
    border-radius: 4px;
    cursor: crosshair;
    background: #fff;
    touch-action: none;
    position: relative;
    z-index: 2;
}

canvas#ach-signature-pad {
    border: 2px dashed #007cba;
    border-radius: 4px;
    background: #fff;
}

.signature-pad:hover {
    border-color: #005a87;
    background: #f9fafb;
}

.signature-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.button-clear-signature {
    padding: 6px 12px;
    font-size: 13px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-clear-signature:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.signature-pad-wrapper .form-group {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .steps-progress {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-connector {
        display: none;
    }
    
    .steps-content {
        padding: 25px 20px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.w-50,
    .form-group.w-33 {
        flex: 1 1 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .button {
        width: 100%;
    }
}

