/**
 * Credit Rocket AI - Styles
 */

/* Container */
.credit-rocket-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Login Required */
.credit-rocket-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

.credit-rocket-login-required h3 {
    color: #333;
    margin-bottom: 10px;
}

.credit-rocket-login-required a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

/* Welcome Screen */
.credit-rocket-welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.welcome-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.limit-info {
    background: #f0f9ff;
    border: 1px solid #b3e0ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.limit-info p {
    margin: 0;
    color: #0066cc;
    font-weight: 500;
}

.welcome-content {
    margin-top: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list li {
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.btn-large {
    padding: 18px 48px !important;
    font-size: 18px !important;
    margin-top: 20px;
}

.welcome-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.tagline {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

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

.feature {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

/* Conversation Screen */
.credit-rocket-conversation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.messages-container {
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.message {
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;
}

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

.message-content {
    padding: 15px 20px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.6;
}

.message-user .message-content {
    background: #0073aa;
    color: white;
    margin-left: auto;
}

.message-bot .message-content {
    background: #f0f0f0;
    color: #333;
}

.message-options {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selection-instruction {
    background: #e6f3ff;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #0073aa;
    text-align: center;
    margin-bottom: 10px;
    border: 2px solid #0073aa;
}

.message-note {
    background: #fff9e6;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #8a6d00;
    margin-top: 10px;
    border-left: 3px solid #ffc107;
}

.btn-next {
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
    align-self: center;
}

.option-button {
    text-align: left;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-button:hover {
    border-color: #0073aa;
    transform: translateX(5px);
}

.option-button.selected {
    border-color: #0073aa;
    background: #e6f3ff;
}

.option-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.option-description {
    font-size: 14px;
    color: #666;
}

.text-input-container {
    margin-top: 15px;
}

.text-input-container textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.text-input-container textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error-message {
    background: #fff0f0;
    border: 2px solid #ff4444;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Confirm Screen */
.credit-rocket-confirm {
    text-align: center;
    padding: 40px;
}

.credit-rocket-confirm h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.credit-rocket-confirm p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Review Letter Screen */
.credit-rocket-review {
    padding: 40px;
}

.credit-rocket-review h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.strategy-info {
    background: #e6f3ff;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.strategy-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0073aa;
}

.strategy-info p {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.6;
}

.success-rate {
    font-weight: 600;
    color: #008a00;
}

.letter-editor {
    margin-bottom: 30px;
}

.letter-editor label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.letter-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

.letter-textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Signature Screen */
.credit-rocket-signature {
    padding: 40px;
    text-align: center;
}

.credit-rocket-signature h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.credit-rocket-signature p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.signature-container {
    max-width: 600px;
    margin: 0 auto 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.signature-canvas {
    display: block;
    cursor: crosshair;
    touch-action: none;
}

/* Download Screen */
.credit-rocket-download {
    padding: 40px;
    text-align: center;
}

.credit-rocket-download h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.credit-rocket-download > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

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

.pdf-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.pdf-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.next-steps {
    background: #e6f3ff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.next-steps h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0073aa;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .credit-rocket-container {
        padding: 15px;
        margin: 20px auto;
    }

    .welcome-content h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 18px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .message-content {
        max-width: 90%;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button,
    .button-group a {
        width: 100%;
    }

    .pdf-list {
        grid-template-columns: 1fr;
    }

    .signature-canvas {
        width: 100% !important;
        height: 150px !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-indicator {
    animation: pulse 1.5s ease-in-out infinite;
}

/* v2.1.0 Additional Styles */

/* Conversation Screen */
.credit-rocket-conversation {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.conversation-header {
    text-align: center;
    margin-bottom: 30px;
}

.conversation-header h2 {
    color: #1a1a1a;
    margin-bottom: 10px;
}

.limit-info-small {
    font-size: 14px;
    color: #666;
}

.question-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.question-card label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.help-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.input-select,
.input-text,
.input-textarea {
    width: 100%;
    padding: 18px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
}

.input-select {
    min-height: 56px;
    line-height: normal; /* Changed from 1.5 to normal to prevent text clipping */
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    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="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
    /* Fix text clipping */
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.input-select option {
    padding: 12px;
    color: #333;
    background-color: #fff;
}

.input-select option:disabled {
    color: #999;
}

.input-select:focus,
.input-text:focus,
.input-textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.radio-group {
    margin-bottom: 20px;
}

.radio-label {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #0073aa;
    background: #f0f9ff;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
}

/* Anything Else Screen */
.credit-rocket-anything-else {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.anything-else-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.anything-else-card h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.dispute-count {
    font-size: 18px;
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 30px;
}

.anything-else-card .question {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Confirm Screens */
.credit-rocket-confirm,
.credit-rocket-confirm-pdf {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.confirm-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.confirm-card h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.confirm-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bureau-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.bureau-list li {
    font-size: 18px;
    padding: 10px 0;
    color: #333;
}

/* Review Letter Screen */
.credit-rocket-review {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.review-header {
    text-align: center;
    margin-bottom: 30px;
}

.review-header h2 {
    color: #1a1a1a;
    margin-bottom: 10px;
}

.letter-editor {
    width: 100%;
    padding: 20px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.letter-editor:focus {
    outline: none;
    border-color: #0073aa;
}

/* Download Screen */
.credit-rocket-download {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.download-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.download-card h2 {
    color: #22c55e;
    margin-bottom: 20px;
    font-size: 32px;
}

.pdf-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.download-link {
    display: block;
    padding: 16px 24px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.download-link:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.next-steps h3 {
    color: #333;
    margin-bottom: 15px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    padding: 8px 0;
    color: #666;
}

/* v2.3.0 - Strategy Display Enhancements */

.strategy-display {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f9ff 100%);
    border-left: 5px solid #0073aa;
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.1);
}

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

.strategy-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.strategy-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.strategy-strength {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-strength.critical {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.strategy-strength.high {
    background: linear-gradient(135deg, #ff9933 0%, #ff6600 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.strategy-strength.medium {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.strategy-success-rate {
    background: #008a00;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.strategy-legal-basis {
    font-size: 14px;
    color: #0073aa;
    font-weight: 600;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.strategy-description {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 10px 0;
}

.strategy-reasoning {
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    padding: 12px 15px;
    margin-top: 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.multiple-strategies {
    margin-top: 20px;
}

.multiple-strategies .strategy-display {
    margin-bottom: 20px;
}

.strategy-count-badge {
    background: #0073aa;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Enhanced question card with more padding */
.question-card {
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Better mobile responsiveness for strategies */
@media (max-width: 768px) {
    .strategy-display {
        padding: 20px;
    }
    
    .strategy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .strategy-name {
        font-size: 18px;
    }
    
    .strategy-badges {
        width: 100%;
    }
}

/* v2.4.0 - New Step-Based Components */

.strategy-steps-container {
    margin: 30px 0;
}

.step-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
    transform: translateY(-2px);
}

.step-card.selected {
    border-color: #0073aa;
    background: #e6f3ff;
}

.step-number {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 10px 0;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.step-recipient {
    font-size: 14px;
    color: #0073aa;
    font-weight: 600;
    margin-top: 12px;
}

.step-selector-question {
    background: white;
    border: 2px solid #0073aa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.step-selector-question p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.questions-container {
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: #0073aa;
    background: #f0f9ff;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.address-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.state-input {
    flex: 1;
}

.zip-input {
    flex: 1;
}

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.profile-row {
    display: flex;
    gap: 15px;
}

.profile-row .profile-field {
    flex: 1;
}

.disputes-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.disputes-summary h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.disputes-summary ul {
    list-style: none;
    padding: 0;
}

.disputes-summary li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

.disputes-summary li:last-child {
    border-bottom: none;
}

.required {
    color: #ff4444;
    font-weight: 700;
}

/* Features Grid for Welcome */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Letter Editor */
.letter-editor {
    width: 100%;
    min-height: 500px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    line-height: 1.8;
    resize: vertical;
}

.letter-editor:focus {
    outline: none;
    border-color: #0073aa;
}

/* PDF Downloads */
.pdf-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.download-link {
    display: block;
    padding: 18px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.download-link:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Signature Canvas */
.signature-container {
    margin: 30px auto;
    max-width: 600px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.signature-canvas {
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.btn-link {
    background: none;
    border: none;
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
}

.btn-link:hover {
    color: #005a87;
}

/* Responsive Updates for v2.4.0 */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .address-row,
    .profile-row {
        flex-direction: column;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .signature-canvas {
        width: 100% !important;
        height: 150px !important;
    }
}

/* Loading Overlay for Letter Generation v2.4.5 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-message {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.loading-submessage {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.loading-status {
    font-size: 13px;
    color: #888;
    text-align: center;
}

.confirm-card {
    position: relative;
    min-height: 400px;
}

/* Ensure button shows loading state clearly */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-large:disabled {
    opacity: 0.7;
}
