/* 
 * 処方箋送信システムのフロントエンド用CSS
 */
.ps-sender-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    padding: 10px;
    box-sizing: border-box;
}
.ps-sender-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}
.ps-sender-notification {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9em;
    line-height: 1.5;
    border-radius: 4px;
}
.ps-sender-form-group {
    margin-bottom: 20px;
}
.ps-sender-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.ps-sender-form-group .required {
    color: #e74c3c;
    font-size: 0.85em;
    font-weight: normal;
}
.ps-sender-container input[type="text"],
.ps-sender-container input[type="tel"],
.ps-sender-container input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* iOS Safariでの自動ズーム防止 */
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.ps-sender-container input[type="text"]:focus,
.ps-sender-container input[type="tel"]:focus,
.ps-sender-container input[type="datetime-local"]:focus {
    border-color: #3498db;
    outline: none;
}

/* 画像入力関連 */
.ps-image-input-row {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px dashed #bdc3c7;
    border-radius: 6px;
    background-color: #fafafa;
}
.ps-file-label {
    display: inline-block !important;
    background-color: #ecf0f1;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s;
}
.ps-file-label:hover {
    background-color: #dde1e2;
}
.ps-file-text {
    font-size: 1.1em;
}
.ps-file-input {
    display: none;
}
.ps-preview-container img {
    max-width: 100%;
    max-height: 250px;
    display: block;
    margin-top: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ボタン類 */
.ps-btn-primary {
    width: 100%;
    background-color: #27ae60;
    color: white;
    padding: 16px;
    font-size: 1.15em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}
.ps-btn-primary:hover {
    background-color: #219653;
}
.ps-btn-primary:active {
    transform: translateY(2px);
}
.ps-btn-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}
.ps-btn-secondary {
    width: 100%;
    background-color: #fff;
    color: #3498db;
    padding: 12px;
    font-weight: bold;
    font-size: 1em;
    border: 2px solid #3498db;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.ps-btn-secondary:hover {
    background-color: #f1f8fc;
}
.ps-btn-restart {
    margin-top: 15px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}
.ps-btn-restart:hover {
    background-color: #eee;
}

/* ラジオボタン群 */
.ps-radio-group {
    background: #fdfdfd;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
}
.ps-radio-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 15px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 1em;
}
.ps-radio-group input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

/* 確認チェックボックス */
.ps-confirm-group {
    background-color: #fffceb;
    padding: 15px;
    border: 1px solid #f1c40f;
    border-radius: 6px;
}
.ps-confirm-group input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 8px;
}

/* エラー・通知系 */
.ps-error-message {
    color: #c0392b;
    background: #fadbd8;
    padding: 12px;
    border-left: 5px solid #e74c3c;
    margin-top: 20px;
    border-radius: 4px;
    font-weight: bold;
}
#ps-loading-spinner {
    text-align: center;
    color: #3498db;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.1em;
}
.ps-thanks-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
    font-size: 1.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 確認画面用スタイル */
.ps-sender-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}
.ps-confirm-data-table {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}
.ps-confirm-data-table dl {
    margin: 0;
    padding: 0;
}
.ps-confirm-data-table dt {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 5px;
}
.ps-confirm-data-table dd {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}
.ps-confirm-data-table dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.ps-confirm-images {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
}
#ps-cfm-images-list img {
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: block;
}
