﻿/* Material Icons - CDN Version for Production */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Roboto Font Family Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 16px;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  margin-bottom: 60px;
  padding: 0;
  color: black;
}

/* Large heading styles (32px) */
h1, .govuk-heading-xl {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25; /* ~40px */
}

/* Override GOV.UK heading-l class with specific typography */
.govuk-heading-l {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  line-height: 25px !important;
  letter-spacing: 0px !important;
}

/*GOV.UK text classes to use Roboto & 16px*/
.govuk-body,
.govuk-body-s,
.govuk-body-l,
.govuk-list,
.govuk-details,
.govuk-details__summary,
.govuk-details__summary-text,
.govuk-details__text,
.govuk-inset-text,
.govuk-button,
.govuk-link,
.govuk-label,
.govuk-hint,
.govuk-error-message,
.govuk-panel__body,
.govuk-summary-list,
.govuk-table,
.govuk-caption-m,
.govuk-caption-l,
.govuk-caption-xl,
.govuk-tag,
.govuk-warning-text {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px !important;
}

.govuk-panel__title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 24px !important;
}

/* Medium heading styles (19px) */
h2, .govuk-heading-l,
.heading-medium {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    line-height: 25px !important;
    letter-spacing: 0px !important;
}

/* Other heading styles keep default GOV.UK styling */
h3, h4, h5, h6,
.govuk-heading-m,
.govuk-heading-s {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

footer {
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    z-index: 100;
    background: #fff;
    height: 4em;
}

.hods-header__logo {
    display: block;
    width: 110px;
    height: auto;
    margin-right: 0;
    margin-bottom: 15px;
    line-height: 0;
}

/* Home Office Header Styling */
.hods-header {
    border-bottom: 1px solid #b1b4b6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.hods-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hods-header__logo {
    display: flex;
    align-items: center;
}

.hods-header__service-name {
    text-align: right;
}

/* Responsive adjustments for Home Office Header */
@media (max-width: 768px) {
    .hods-header__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hods-header__service-name {
        text-align: left;
    }
}

/* Material Icons Tick Implementation - GOV.UK Style */
.material-tick-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: #1a7f50; /* GOV.UK green for tick background */
  border-radius: 50%;
  margin: 0 auto 15px;
}

.material-tick-icon .check-icon {
  font-size: 36px;
  color: #ffffff; /* White tick */
  line-height: 1;
  font-weight: 900; /* Thicker tick */
}

/* Responsive sizing variants */
.material-tick-icon.small {
  width: 32px;
  height: 32px;
}

.material-tick-icon.small .check-icon {
  font-size: 18px;
}

.material-tick-icon.large {
  width: 80px;
  height: 80px;
}

.material-tick-icon.large .check-icon {
  font-size: 45px;
}

/* Mobile responsive - smaller tick icon on mobile devices */
@media (max-width: 768px) {
  .material-tick-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
  }
  
  .material-tick-icon .check-icon {
    font-size: 28px;
  }
}

/* File Upload Styles */
.file-upload-container {
    margin-bottom: 20px;
}

.selected-files-container {
    margin-top: 20px;
}

.selected-files-container .govuk-summary-list {
    border-top: 1px solid #b1b4b6;
}

.selected-files-container .govuk-summary-list__row {
    border-bottom: 1px solid #b1b4b6;
}

.selected-files-container .govuk-summary-list__key {
    font-weight: 400;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #1d70b8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.remove-file-btn:hover {
    color: #003078;
}

.remove-file-btn:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    background-color: #ffdd00;
    color: #0b0c0c;
}

/* File upload error styling */
.govuk-form-group--error .file-upload-container {
    border-left: 5px solid #d4351c;
    padding-left: 15px;
    margin-left: -20px;
}

/* Hide file input when disabled */
#file-upload-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced text-danger styling for better visibility - GDS compliant */
.text-danger {
    color: #d4351c !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    display: block !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 4px !important;
    position: relative !important;
}

/* Only show error prefix when there's actual error content */
.text-danger:not(:empty):before {
    content: "⚠ Error: ";
    font-weight: 700 !important;
    margin-right: 5px;
}

/* Hide empty error message elements */
.text-danger:empty {
    display: none;
}

/* Enhanced form validation states */
.has-error {
    border-left: 5px solid #dc3545 !important;
    padding-left: 15px !important;
    margin-bottom: 20px !important;
    background-color: #fff5f5 !important;
    border-radius: 0 4px 4px 0 !important;
}

.has-error .form-control {
    border-color: #dc3545 !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483 !important;
}

.has-error .form-control:focus {
    border-color: #dc3545 !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #ce8483 !important;
}

.has-error label {
    color: #721c24 !important;
    font-weight: 600 !important;
}

/* Enhanced is-invalid styling */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(.375em + .1875rem) center !important;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483 !important;
}

.form-control.is-invalid:focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #ce8483 !important;
}

/* Error summary for Bootstrap forms */
.alert-danger {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    border-width: 2px !important;
    border-left-width: 5px !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
}

.alert-danger h4 {
    color: #721c24 !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.alert-danger ul {
    margin-bottom: 0 !important;
    padding-left: 20px !important;
}

.alert-danger li {
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

/* Enhanced form-check error states */
.has-error .form-check-input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.has-error .form-check-label {
    color: #721c24 !important;
    font-weight: 600 !important;
}

/* Make error states more prominent on focus */
.has-error .form-check-input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.govuk-footer {
    border-top: 1px solid #b1b4b6 !important;
}

.hods-header {
    border-bottom: none !important;
}
/* Disable the GOV.UK header logo link to prevent navigation */
.govuk-header__link--homepage {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
}

/* Ensure it looks like text, not a link on hover */
.govuk-header__link--homepage:hover {
    text-decoration: none !important;
    color: inherit !important;
}