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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    padding-bottom: 100px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #000000;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.back-btn {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    text-decoration: none;
    color: #000000;
}

.back-btn:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.page-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.nav-spacer {
    width: 50px;
}

/* Main Content */
.escrow-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-subtitle {
    text-align: center;
    color: #666666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Form Sections */
.form-section {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.amount-input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666666;
    font-weight: bold;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

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

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-group.error {
    padding: 10px;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    background: rgba(231, 76, 60, 0.05);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked {
    background: #000000;
    border-color: #000000;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

/* Payment Method Cards */
.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #000000;
    background: #f9f9f9;
}

.payment-method.selected {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.payment-method.selected .payment-icon {
    background: #ffffff;
    color: #000000;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-details {
    font-size: 14px;
    color: #666666;
}

.payment-method.selected .payment-details {
    color: #cccccc;
}

.radio-check {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method.selected .radio-check {
    border-color: #ffffff;
}

.radio-check::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method.selected .radio-check::after {
    opacity: 1;
    background: #ffffff;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Summary */
.summary {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.summary-row.total {
    border-top: 2px solid #000000;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.create-btn {
    flex: 1;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.create-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.draft-btn {
    flex: 1;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 15px;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.draft-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .escrow-container {
        padding: 0 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
    }
}
