/* Recipient Registration Form Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}

.recipient-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin-top: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.form-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.text-danger {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.indemnity-section {
    background-color: #fffbf0;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.indemnity-section h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.indemnity-text {
    max-height: 250px;
    overflow-y: auto;
    background-color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.indemnity-text p {
    margin-bottom: 0.75rem;
}

.indemnity-text ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-check {
    padding-left: 1.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-submit {
    background-color: #198754;
    color: var(--white);
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-submit:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.success-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 3rem 2.5rem;
    margin-top: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
}

.success-card h1 {
    color: #198754;
    margin-bottom: 1rem;
}

.reference-number {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.btn-home {
    background-color: #198754;
    color: var(--white);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: #146c43;
    color: var(--white);
    transform: translateY(-2px);
}

/* Signature Pad Styles */
.signature-container {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--white);
    padding: 0.5rem;
}

.signature-canvas {
    width: 100%;
    height: 200px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    cursor: crosshair;
    touch-action: none;
}

.signature-buttons {
    display: flex;
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-card, .success-card {
        padding: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .indemnity-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .recipient-container {
        margin: 1rem auto;
    }

    .form-card, .success-card {
        padding: 1.25rem;
        margin-top: 1rem;
    }
}
