/* Registry Data Form Styles - Namespaced */
.rd-form-container {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
}

.rd-form-header {
    margin-bottom: 24px;
    text-align: center;
}

.rd-form-title {
    font-size: 28px;
    color: #2A5FA2;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.rd-form-subtitle {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.rd-form-group {
    display: flex;
    gap: 16px;
    margin-bottom: 0px;
    flex-wrap: wrap;
    align-items: stretch;
}

.rd-form-group-small {
    margin-bottom: 20px;
    margin-top: 12px;
    display: block;
    width: 100%;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #2A5FA2;
}

.rd-input {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    color: #495057;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
}

.rd-input:focus {
    border-color: #2A5FA2;
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 95, 162, 0.1);
    transform: translateY(-1px);
}

.rd-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.rd-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2A5FA2 0%, #1e4a7a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(42, 95, 162, 0.3);
}

.rd-button:hover {
    background: linear-gradient(135deg, #1e4a7a 0%, #173952 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 95, 162, 0.4);
}

.rd-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(42, 95, 162, 0.3);
}

.rd-button-icon {
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
}

.rd-loading {
    display: none;
    align-items: center;
    margin: 20px 0;
    color: #495057;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border: 2px solid #2A5FA2;
}

.rd-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(42, 95, 162, 0.2);
    border-radius: 50%;
    border-top-color: #2A5FA2;
    margin-right: 16px;
    animation: rd-spin 1s linear infinite;
}

@keyframes rd-spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.rd-error {
    color: #dc3545;
    padding: 18px 24px;
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    margin: 20px 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    display: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Success message */
.rd-success {
    color: #28a745;
    padding: 18px 24px;
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    margin: 20px 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    display: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Call to Action Section */
.rd-cta-section {
    background: linear-gradient(135deg, #2A5FA2 0%, #1e4a7a 100%);
    color: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    margin: 32px 0;
    box-shadow: 0 8px 30px rgba(42, 95, 162, 0.3);
}

.rd-cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.rd-cta-text {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rd-cta-button {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #2A5FA2;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.rd-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: #1e4a7a;
}

.rd-cta-button-icon {
    margin-left: 12px;
    font-size: 20px;
}

/* Company Info Container */
.rd-company-container {
    font-family: Arial, sans-serif;
    font-size: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.rd-company-header {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    font-weight: 600;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.rd-company-header:hover {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.rd-company-header h4 {
    margin: 0;
    font-size: 18px;
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rd-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.rd-toggle:before {
    content: "−";
}

.rd-company-header.collapsed .rd-toggle {
    transform: rotate(180deg);
}

.rd-company-header.collapsed .rd-toggle:before {
    content: "+";
}

.rd-company-content {
    padding: 0;
    overflow: hidden;
}

.rd-info-section {
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
}

.rd-info-section:last-child {
    border-bottom: none;
}

.rd-info-title {
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, #2A5FA2 0%, #1e4a7a 100%);
    color: white;
    padding: 14px 24px;
    margin-bottom: 0;
    border-bottom: none;
}

.rd-info-block {
    padding: 20px 24px;
    background: white;
}

.rd-info-row {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.rd-info-row:last-child {
    border-bottom: none;
}

.rd-label {
    font-weight: 700;
    color: #2A5FA2;
    font-size: 15px;
    min-width: 120px;
    flex-shrink: 0;
}

.rd-value {
    color: #495057;
    font-size: 15px;
    flex: 1;
    word-break: break-word;
    line-height: 1.5;
}

.rd-activity {
    color: #6c757d;
    line-height: 1.6;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 480px) {
    .rd-form-container {
        padding: 16px;
        margin: 12px;
    }

    .rd-form-title {
        font-size: 24px;
    }

    .rd-form-subtitle {
        font-size: 14px;
    }

    .rd-form-group {
        flex-direction: column;
        gap: 12px;
    }

    .rd-input {
        min-width: 100%;
        max-width: 100%;
    }

    .rd-button {
        width: 100%;
        justify-content: center;
    }

    .rd-cta-section {
        padding: 24px 16px;
    }

    .rd-cta-title {
        font-size: 20px;
    }

    .rd-cta-text {
        font-size: 14px;
    }

    .rd-cta-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .rd-company-container {
        font-size: 14px;
    }
    .rd-company-header h4 {
        font-size: 16px;
    }
    .rd-label, .rd-value {
        font-size: 14px;
    }
    .rd-info-row {
        flex-direction: column;
        gap: 8px;
    }
    .rd-label {
        min-width: auto;
    }
}


.rd-print-section {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

.rd-print-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.rd-print-button:hover {
    background-color: #218838;
}

.rd-print-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Print-specific styles */
@media print {
    body * {
        visibility: hidden;
    }

    .rd-print-content,
    .rd-print-content * {
        visibility: visible;
    }

    .rd-print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .rd-print-button,
    .rd-form-container .rd-form-group,
    .rd-form-container .rd-form-group-small,
    .rd-cta-section,
    .rd-error,
    .rd-success {
        display: none !important;
    }

    .rd-company-header {
        cursor: default !important;
    }

    .rd-company-content {
        display: block !important;
    }
}
