/* Ceremony Rain Plan Styles */

.crp-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.crp-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e6e6e6;
    position: relative;
}

.crp-back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #111;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.crp-back-btn:hover {
    background: #111;
    color: white;
}

.crp-logo {
    max-width: 160px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.crp-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.crp-content {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.crp-intro p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.crp-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.crp-customer-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.crp-info-row {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: baseline;
}

.crp-info-row:last-child {
    margin-bottom: 0;
}

.crp-info-row label {
    font-weight: 700;
    min-width: 180px;
    color: #111;
}

.crp-info-row span {
    color: #444;
}

.crp-agreement {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 12px;
    border: 2px solid #2196f3;
}

.crp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.6;
}

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

.crp-checkbox-label span {
    flex: 1;
    font-weight: 600;
    color: #111;
}

.crp-signature-section {
    margin: 2rem 0;
}

.crp-signature-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.crp-signature-section p {
    color: #666;
    margin-bottom: 1rem;
}

#crp-signature-canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
    background: white;
    touch-action: none;
}

.crp-signature-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.crp-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.crp-btn-primary {
    background: #111;
    color: white;
}

.crp-btn-primary:hover:not(:disabled) {
    background: #2a2a2a;
    transform: translateY(-2px);
}

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

.crp-btn-secondary {
    background: white;
    color: #111;
    border: 2px solid #111;
}

.crp-btn-secondary:hover {
    background: #f5f5f5;
}

.crp-date-info {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

#crp-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

#crp-message.crp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#crp-message.crp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.crp-signed {
    margin: 2rem 0;
}

.crp-success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.crp-success-box h3 {
    color: #155724;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.crp-success-box p {
    color: #155724;
    margin: 0.5rem 0;
}

.crp-signature-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.crp-signature-display label {
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    color: #111;
}

.crp-signature-img {
    max-width: 400px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 1rem;
}

.crp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #f5c6cb;
    text-align: center;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .crp-content {
        padding: 1.5rem;
    }
    
    .crp-back-btn {
        position: static;
        transform: none;
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .crp-info-row {
        flex-direction: column;
    }
    
    .crp-info-row label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .crp-signature-actions {
        flex-direction: column;
    }
    
    .crp-btn {
        width: 100%;
    }
    
    #crp-signature-canvas {
        height: 150px;
    }
}
