:root {
    --primary-color: #000066;
    --secondary-color: #0066cc;
    --border-color: #ccc;
    --background-color: #f5f5f5;
    --text-color: #333;
    --error-color: #ff0000;
    --success-color: #008000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    max-width: 200px;
}

.application-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.signature-pad {
    width: 100%;
    height: 200px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.service-selection,
.currency-selection {
    margin-bottom: 2rem;
}

.checkbox-group label {
    display: block;
    margin-bottom: 1rem;
}

.table-container {
    margin-bottom: 2rem;
    position: relative;
}

.delete-row-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 8px;
    font-weight: bold;
    transition: all 0.3s;
    border-radius: 4px;
    line-height: 1.2;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-row-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.add-row-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    padding: 4px 12px;
    margin-top: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.add-row-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.add-row-btn span {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    border: 1px solid var(--primary-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: normal;
    border: 1px solid var(--primary-color);
}

td {
    padding: 0.5rem;
    vertical-align: middle;
    border: 1px solid var(--primary-color);
}

td input {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
}

td input:focus {
    outline: none;
    background: rgba(0, 0, 102, 0.05);
}

/* Make the action column narrower */
th:last-child,
td:last-child {
    width: 60px;
    text-align: center;
    padding: 0.25rem;
}

.questions-grid {
    display: grid;
    gap: 1rem;
}

.details-box {
    margin-top: 2rem;
}

.document-checklist {
    margin-bottom: 2rem;
}

.document-checklist label {
    display: block;
    margin-bottom: 1rem;
    font-weight: normal;
}

.form-confirmations {
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.submit-btn,
.reset-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
}

.reset-btn {
    background-color: var(--border-color);
    color: var(--text-color);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
    }
}

/* Updated checkbox styling */
.custom-checkbox {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Asset table styling */
.asset-table-container {
    position: relative;
    margin-bottom: 2rem;
}

.add-row-btn i {
    font-size: 1.2rem;
}

/* Currency selection styling */
.currency-selection {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.currency-selection .custom-checkbox {
    margin-bottom: 0;
}

.currency-selection input[type="text"] {
    width: 150px;
    margin-left: 1rem;
}

/* Add these styles */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-box {
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.upload-area:hover {
    background: rgba(0, 0, 102, 0.05);
}

.upload-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-content p {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.upload-content small {
    color: #666;
}

.upload-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 102, 0.05);
    border-radius: 4px;
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.view-file {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.view-file:hover {
    background: var(--secondary-color);
}

.remove-file {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.location-container {
    margin-top: 1rem;
}

.location-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    transition: all 0.3s;
}

.location-btn:hover {
    background: var(--primary-color);
    color: white;
}

.location-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 102, 0.05);
    border-radius: 4px;
}

.location-info p {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.coordinates {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.refresh-location {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.refresh-location:hover {
    opacity: 0.8;
}

/* Video Recording Styles */
.video-recording-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.video-preview {
    width: 100%;
    max-width: 640px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-preview video {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-play-overlay[hidden] {
    display: none;
}

.play-video-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.play-video-btn:hover {
    background: var(--secondary-color);
}

.play-video-btn i {
    font-size: 1.2rem;
}

.video-controls {
    display: flex;
    gap: 1rem;
}

.record-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.record-btn:hover {
    background: #0056b3;
}

.record-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
    font-weight: 500;
}

.recording-status[hidden] {
    display: none;
}

.recording-indicator {
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Required field styles */
.required {
    color: #dc3545;
    margin-left: 4px;
}

.upload-area.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.upload-area.error .upload-content i,
.upload-area.error .upload-content p {
    color: #dc3545;
}

/* Custom checkbox error state */
.custom-checkbox input:invalid ~ .checkmark {
    border-color: #dc3545;
}

select {
    background-color: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}


.indemnity-link {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 35px;
    padding-bottom: 25px;
}


